sulu / web-twig
Web-js 组件管理的 web twig 扩展
v2.6.0
2024-09-04 08:15 UTC
Requires
- php: ^7.1 || ^8.0
- twig/twig: ^1.38 || ^2.7 || ^3.0
Requires (Dev)
- jangregor/phpstan-prophecy: ^1.0
- php-cs-fixer/shim: ^3.64
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^7.5 || ^8.5
- symfony/intl: ^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0
- symfony/property-access: ^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0
- thecodingmachine/phpstan-strict-rules: ^1.0
Suggests
- symfony/intl: The IntlExtension requires the symfony/intl service.
- symfony/property-access: The ImageExtension requires the symfony/property-access service.
Conflicts
- symfony/intl: >=8.0
- symfony/property-access: >=8.0
README
安装
composer require sulu/web-twig
扩展
1. 组件
与 web-js 一起使用的 web component extension,为您提供了简单高效的方式来处理 twig 中的 JavaScript 组件。
2. 图片
通过 web image extension,您可以使用简单高效的方式处理 twig 中的图片。
3. Intl
通过 web intl extension,您可以使用简单高效的方式获取特定语言的 国家、语言和区域。
4. Count
通过 web count extension,您可以在 twig 模板中拥有一个全局计数器。
5. Url
通过 web url extension,您可以使用简单高效的方式获取 URL 的特定部分。
6. 编辑器
通过 web editor extension,您可以使用简单的方式在文本编辑器提供的 HTML 上添加类。
7. 图标
通过 icon extension,您可以使用简单的方式渲染 icomoon 图标。
8. Portal
通过 portal extension,将 react portal 功能引入 twig。