NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2808 most downloaded on Packagist
Allows you to easily create a sandboxed Twig environment where you can control what tags, filters, functions, and object methods/properties are allowed
Latest stable
5.0.6
Last release 1 months ago
25 Sep 2026
Release timing varies
gaps range from 4 weeks to 1.1 years
Nearly every release is documented
notes for 16 of 17 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
17 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
Adjust the method signature for checkSecurity() to be compatible with later versions of Twig
checkSecurity() to be compatible with later versions of Twig (#2)Provide a mechanism for adding Twig Extensions in bulk to the SandboxView
SandboxView (#1632)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Remove errant dependency on SEOmatic in the SecurityPolicy helper class
SecurityPolicy helper classAdd an example config/blacklist-sandbox.php and config/whitelist-sandbox.php files for user-customizable Twig sandbox environments
config/blacklist-sandbox.php and config/whitelist-sandbox.php files for user-customizable Twig sandbox environmentsSecurityPolicy::createFromFile() to create a new Twig sandbox from a config file in the config/ directoryBlacklistSecurityPolicy to no longer blacklist innocuous tags/filters/functionsCraft Twig Sandbox no longer automatically handles exceptions when rendering sandbox templates. Instead, you can decide whether to handle the exceptio
sandboxErrorHandler for display in the browser/consolemarkhuot/craft-pest-core:^2.0.4 package instead of the patch version from @bencrokerRemoved the special-casing for the Craft Closure, since it now uses a different loading mechanism
SanboxView to use ::registerTwigExtension rather than overriding ::createTwig()### Added * Initial release
Provide a mechanism for adding Twig Extensions in bulk to the SandboxView
SandboxView (#1632)Remove errant dependency on SEOmatic in the SecurityPolicy helper class
SecurityPolicy helper classAdd an example config/blacklist-sandbox.php and config/whitelist-sandbox.php files for user-customizable Twig sandbox environments
config/blacklist-sandbox.php and config/whitelist-sandbox.php files for user-customizable Twig sandbox environmentsSecurityPolicy::createFromFile() to create a new Twig sandbox from a config file in the config/ directoryBlacklistSecurityPolicy to no longer blacklist innocuous tags/filters/functionsCraft Twig Sandbox no longer automatically handles exceptions when rendering sandbox templates. Instead, you can decide whether to handle the exceptio
sandboxErrorHandler for display in the browser/consolemarkhuot/craft-pest-core:^2.0.4 package instead of the patch version from @bencrokerRemoved the special-casing for the Craft Closure, since it now uses a different loading mechanism
SanboxView to use ::registerTwigExtension rather than overriding ::createTwig()Nothing published for this version
Provide a mechanism for adding Twig Extensions in bulk to the SandboxView
SandboxView (#1632)Fixed an issue with PHP versions less than 7.4 and the SandboxView class
7.4 and the SandboxView class (#1614)Remove errant dependency on SEOmatic in the SecurityPolicy helper class
SecurityPolicy helper classAdded Initial release
One column per month.