squirrelphp/twig-php-syntax
Twig PHP Syntax is a Twig extension that adds PHP-like syntax to templates, letting PHP developers use familiar expressions and control structures while rendering with Twig. It bridges PHP habits and Twig's templating engine for simpler, more intuitive template authoring.
=== / !== operators because Twig now provides them upstream. Product and engineering should treat this as a dependency-alignment decision: upgrade Twig first, then remove or retire this package where it was only used for strict comparison syntax.Consider this package when:
=== / !== behavior, but cannot yet upgrade to Twig >=3.23.Look elsewhere or plan removal when:
For executives: This release is a maintenance and dependency-alignment change, not a new product capability. The package is stepping back where Twig now provides the same functionality natively. The main business value is reduced custom code and long-term maintenance risk, but adoption requires a coordinated Twig upgrade and a major-version migration. Teams still on older Twig versions should not upgrade blindly.
For engineering: v2.0 requires Twig >=3.23, removes classes, and seals all remaining classes. Functionality is otherwise unchanged. Before adoption, audit for references to removed classes, any subclassing or extension of package classes, and usages of === / !== that can now be replaced with native Twig operators. If the package is only used for strict comparison syntax, plan to upgrade Twig and remove the dependency. If it provides other integration value, validate that the sealed-class constraint is acceptable and schedule the major-version upgrade with regression tests around Twig rendering and Laravel integration.
How can I help you explore Laravel packages today?