uegmobile / uuid-twig-extension-bundle
Symfony twig extension bundle to use uuid function (based on ramsey/uuid bundle)
Installs: 471
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^5.4||^7||^8
- ramsey/uuid: ^3.7||~4
- symfony/symfony: ^2.3||~3||~4||~5
This package is not auto-updated.
Last update: 2025-02-19 20:51:24 UTC
README
Symfony twig extension bundle to use uuid function (based on ramsey/uuid bundle)
installation
Through composer in your symfony project:
composer require uegmobile/uuid-twig-extension-bundle
In Symfony <= 3, Then, register the bundle in your AppKernel by adding the following line:
new UEGMobile\UUIDTwigExtensionBundle\UUIDTwigExtensionBundle()
In Symfony >= 4, Then, register the bundle in your bundle.php file by adding the following line:
UEGMobile\UUIDTwigExtensionBundle\UUIDTwigExtensionBundle::class => ['all' => true]
twig extensions
uuid function:
- link function to ramsey/uuid
Examples
Print new UUID in a twig template:
{{ uuid() }}