massive / web-twig-extensions
Web-js 组件管理的 Web Twig 扩展
v1.5.0
2018-12-21 12:05 UTC
Requires
- php: ~5.5 || ~7.0
- twig/twig: ^1.11 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- phpunit/phpunit: ^5.0 || ^6.0 || ^7.0
- symfony/intl: ^2.8 || ^3.0 || ^4.0
- symfony/property-access: ^2.8 || ^3.0 || ^4.0
Suggests
- symfony/intl: The IntlTwigExtension requires the symfony/intl service.
- symfony/property-access: The ImageTwigExtension requires the symfony/property-access service.
README
安装
composer require massive/web-twig-extensions ^1.0
扩展
1. 组件
与 web-js 结合的 web component twig 扩展,为您提供了简单高效的方式在 twig 中处理 JavaScript 组件。
2. 图片
web image twig 扩展为您提供了一种简单高效的方式在 twig 中处理图片。
3. Intl
web intl twig 扩展为您提供了一种简单高效的方式获取特定语言的国家、语言和区域设置。
4. count
web count twig 扩展为您提供了一种简单高效的方式在 twig 模板中拥有一个全局计数器。
5. Url
web url twig 扩展为您提供了一种简单高效的方式获取 URL 的特定部分。