thunderer/shortcode
Advanced shortcode (BBCode) parser and engine for PHP
v0.7.7
2.9M downloads/mo
#3469 most downloaded on Packagist
thunderer/Shortcode
What this package is like to depend on
Last release 2 months ago
18 Jun 2026
Release timing varies
gaps range from 4 weeks to 2.9 years
Some releases are documented
notes for 10 of 24 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
24 releases · first in 2015
1 release in the last 12 months
see the full history below
Release timeline
24 releases · Apr 2015 to Jun 2026Releases
latest 24-
v0.7.718 Jun 2026Release notes
Open source →What's Changed
- Drop offsets when tokenizing with RegularParser by @funkjedi in #111
- RegularParser now properly takes into account escaped tokens by @thunderer in #120
- Optimize parsers: O(n²) → O(n) offset calculation by @rhukster in #121
- Fixed serialization test by @thunderer in #122
New Contributors
Full Changelog: v0.7.6...v0.7.7
-
v0.7.615 Dec 2024 -
v0.7.513 Jan 2022Release notes
Open source →- full Psalm type coverage,
- moved from Travis to GitHub Actions,
- support for PHP 8.1,
- CI runs Infection.
-
v0.7.408 Mar 2020Release notes
Open source →Merge pull request #85 from funkjedi/patch-1
Updating getParameter docblock
-
v0.7.303 Dec 2019 -
v0.7.217 Apr 2019 -
v0.7.103 Feb 2019 -
v0.7.009 Dec 2018Release notes
Open source →- many
RegularParserimprovements and fixes:- backtracks now rely on their offsets only, this is an over 10x performance and memory usage improvement which evens its performance with other parsers while still keeping its feature advantage,
- subsequent non-token text fragments are now reported as single
T_STRINGtokens, - fixed #70,
preg_match_all()with large inputs was sometimes silently failing and returning only subset of matches which reduced the number of reported shortcodes, - fixed #58 where invalid token sequences in shortcode content may confuse the parser,
- inlined
content()method effectively halving the call nesting level, - disabled
xdebug.max_nesting_levelduringparse()to prevent development environment parsing errors,
- added support for PHPUnit 6.x with fallback translation for PHP 5.x compatibility,
- dropped PHP 5.3 (still supported) and added PHP 7.2 from Travis matrix,
- asterisk
*is now a valid shortcode name, - minor internal
Processorimprovements, - minor README updates.
- many
-
v0.6.508 Jan 2017 -
v0.6.413 Dec 2016Release notes
Open source →Fixed minor WordPress compatibility issue with content detection in
WordpressParser. -
v0.6.310 Aug 2016Nothing published for this version
-
v0.6.225 Apr 2016Nothing published for this version
-
v0.6.125 Feb 2016Nothing published for this version
-
v0.6.013 Feb 2016Nothing published for this version
-
v0.5.326 Jan 2016Nothing published for this version
-
v0.5.220 Jan 2016Nothing published for this version
-
v0.5.112 Nov 2015Nothing published for this version
-
v0.5.028 Oct 2015Nothing published for this version
-
v0.4.015 Jul 2015Nothing published for this version
-
v0.3.008 May 2015Nothing published for this version
-
v0.2.226 Apr 2015Nothing published for this version
-
v0.2.123 Apr 2015Nothing published for this version
-
v0.2.017 Apr 2015Nothing published for this version
-
v0.1.006 Apr 2015Nothing published for this version