Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Twig Extensions Bundle

Twig Extensions Bundle Laravel Package

ajgl/twig-extensions-bundle

View on GitHub
Deep Wiki
Context7

Symfony bundle to integrate some Twig extensions

Frequently asked questions about Twig Extensions Bundle
Is AjglTwigExtensionsBundle compatible with Laravel 8/9/10?
No, this bundle is designed for Symfony 2.x and has no Laravel support. Laravel uses Blade by default, and forcing Twig integration would require manual hacks with Symfony bridges, which is not recommended.
What Twig extensions does this bundle provide, and are they worth using?
The bundle’s documentation doesn’t specify which extensions it includes, and it’s deprecated in favor of a standalone package. Without clarity, there’s no clear value over modern alternatives like twig/twig-laravel or Blade directives.
Why is this bundle deprecated, and should I still use it?
It’s deprecated because the maintainer recommends using AjglBreakpointTwigExtension instead. Using this bundle risks dependency conflicts, security issues (PHP 5.3+ and Symfony 2.x), and lack of maintenance. Avoid it unless you’re locked into Symfony 2.x.
Can I use this bundle in a Laravel project if I already have Twig installed?
Technically, you *could* force it in, but it’s not designed for Laravel and may break due to Symfony 2.x dependencies. Laravel’s ecosystem (Blade, Livewire) prefers native solutions. Use twig/twig-laravel or spatie/laravel-twig instead.
What are the PHP version requirements, and will they conflict with Laravel?
This bundle requires PHP 5.3.2+, but Laravel 8+ needs PHP 7.3+. The Symfony 2.x dependencies will also clash with Laravel’s modern Symfony components (e.g., symfony/http-kernel:^5.4). Avoid it for compatibility reasons.
Are there better Laravel alternatives for Twig extensions?
Yes. For Twig in Laravel, use the official twig/twig-laravel or spatie/laravel-twig. If you only need specific extensions, consider writing a custom Blade directive or Laravel service provider instead of relying on a deprecated Symfony bundle.
How do I install AjglTwigExtensionsBundle in Laravel despite the risks?
You can run `composer require ajgl/twig-extensions-bundle:0.1.*`, but Laravel won’t natively support Symfony bundles. You’d need to manually configure a Symfony bridge, which is complex and unsupported. Expect dependency conflicts and breakages.
Will this bundle work with modern Symfony 6/7 or Laravel’s Symfony components?
No. It’s tied to Symfony 2.x and won’t integrate with Symfony 6/7 or Laravel’s Symfony components (e.g., symfony/console, symfony/http-foundation). The architecture is fundamentally incompatible with modern Laravel.
Are there security risks using this deprecated bundle?
Yes. The bundle relies on abandoned dependencies (ajgl/twig-extensions:0.1.*), outdated PHP (5.3+), and Symfony 2.x, which may have unpatched vulnerabilities. Laravel’s ecosystem prioritizes security updates, so this bundle introduces unnecessary risk.
Should I migrate from this bundle to AjglBreakpointTwigExtension if I’m already using it?
Yes, but only if you’re using the AjglBreakpointTwigExtension feature. The standalone extension is the maintained path, but even that may not be ideal for Laravel. Evaluate whether Twig is truly necessary—Blade or Livewire may suffice for your use case.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon