nucleos / twig-extensions
Useful extensions for twig.
Fund package maintenance!
core23
Opencollective
Ko-Fi
Other
Installs: 36 020
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Open Issues: 3
Requires
- php: ^8.1
- ext-pcre: *
- symfony/routing: ^5.4 || ^6.3
- symfony/translation-contracts: ^2.0 || ^3.0
- twig/twig: ^3.3
Requires (Dev)
- ergebnis/composer-normalize: ^2.5.1
- symfony/browser-kit: ^5.4 || ^6.3
- symfony/config: ^5.4 || ^6.3
- symfony/dependency-injection: ^5.4 || ^6.3
- symfony/expression-language: ^5.4 || ^6.3
- symfony/framework-bundle: ^5.4.19 || ^6.3
- symfony/http-kernel: ^5.4 || ^6.3
- symfony/intl: ^5.4 || ^6.3
- symfony/polyfill-intl-icu: ^1.13
- symfony/twig-bridge: ^5.4 || ^6.3
- symfony/twig-bundle: ^5.4 || ^6.3
Suggests
- symfony/framework-bundle: If you want to use symfony
Conflicts
- symfony/framework-bundle: <5.4
This package is auto-updated.
Last update: 2023-08-30 08:52:05 UTC
README
Useful extensions for twig.
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:
composer require nucleos/twig-extensions
Symfony usage
If you want to use this library inside symfony, you can use a bridge.
Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles in config/bundles.php
file of your project:
// config/bundles.php return [ // ... Nucleos\Twig\Bridge\Symfony\Bundle\NucleosTwigBundle::class => ['all' => true], ];
License
This library is under the MIT license.