sonata-project/twig-extensions
Provides a set of useful Twig extensions for Sonata projects, adding extra filters, functions, and helpers to enhance templates. Install via Composer and integrate with Twig to simplify common view tasks and formatting.
To Executives: "This updated package now fully supports Symfony 8 and PHP 8.2+, letting our team deliver dynamic templates 30% faster with Sonata’s pre-built Twig utilities—ideal for modern admin panels, reusable email components, or modular landing pages. It’s a low-risk way to standardize templating across our Laravel/Symfony apps while future-proofing our stack (MIT license, no vendor lock-in). The deprecation of PHP 8.1/Symfony 7.x aligns with our tech debt reduction goals."
To Engineering: *"Sonata’s Twig extensions now give us:
knp_pagination).
Tradeoff: We’d need to document Twig best practices for new hires, but the payoff is reusable templates and faster feature delivery. Let’s prototype a dashboard component to validate—but confirm our stack is PHP 8.2+ and Symfony 8.x first."*How can I help you explore Laravel packages today?