core23/twig-extensions
Extra Twig extensions and helpers for PHP apps, packaged as a lightweight bundle. Adds convenient filters, functions, and runtime utilities to simplify templates and reduce boilerplate, with straightforward integration into existing Twig environments.
symfony/mailer, symfony/http-client) or planning to adopt Symfony’s ecosystem. This aligns with Laravel’s growing integration with Symfony’s tools (e.g., Symfony’s HTTP client in Laravel 10+).composer require), with minimal changes required for Laravel integration via a service provider.symfony/phpunit-bridge (v8) is unlikely to affect Laravel projects unless they directly use Symfony’s testing tools. No breaking changes expected for core functionality.symfony/phpunit-bridge update to v8 is non-breaking but may require PHPUnit 9.5+ for full functionality. Ensure CI/CD pipelines align with these requirements.composer validate --strict
symfony/phpunit-bridge.Str::, Carbon) or Blade directives replace some extensions?symfony/phpunit-bridge if using PHPUnit.composer require nucleos/twig-extensions:^3.6
Twig::getEnvironment()->addExtension(new \Nucleos\TwigExtensions\Extension\AllExtensions());
composer require phpunit/phpunit:^9.5
symfony/mailer), validate integration post-update..env has:
TWIG_CACHE_DIR=/path/to/cache
nucleos/twig-extensions:^3.5 if issues arise.nucleos/twig-extensions and symfony/phpunit-bridge for security patches. Use:
composer why-not nucleos/twig-extensions
TWIG_DEBUG=true in .env for detailed errors.Twig::getEnvironment()->addErrorHandler(function ($e) {
Log::error($e->getMessage());
abort(500, 'Template error');
});
memory_get_usage() // In long-running processes.
laravel_).symfony/phpunit-bridge deprecations.eval) remain high-risk. Sanitize inputs rigorously.twig-lint) to PR checks.How can I help you explore Laravel packages today?