uegmobile/uuid-twig-extension-bundle
Composer 安装命令:
composer require uegmobile/uuid-twig-extension-bundle
包简介
Symfony twig extension bundle to use uuid function (based on ramsey/uuid bundle)
README 文档
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() }}
统计信息
- 总下载量: 472
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-15