PHP Package: sonata-project/twig-extensions
The sonata-project twig-extensions library provides additional useful functions and filters for Twig templating engine, enhancing your web development experience.
Package Description
Discover the sonata-project twig-extensions library, a powerful toolbox for Twig templates. With a variety of helper functions and filters, this library simplifies common tasks and boosts your development productivity. Whether you need to manipulate strings, format dates, or generate dynamic content, twig-extensions has got you covered. Elevate your web projects with this versatile library and unlock a world of possibilities.
Download Latest Version: 2.5.0

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/sonata-project/twig-extensions/2.5.0/loader.php';
require_once 'libs/twig/twig/{lib_version}/loader.php';
use Sonata\TwigExtensions\Extension\StringManipulationExtension;
use Sonata\TwigExtensions\Extension\DateExtension;
$obj = new StringManipulationExtension();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.