fabiang / assetic-module
提供Assetic库完整集成的Zend Framework/Laminas模块
v3.4.0
2024-01-24 11:17 UTC
Requires
- php: ^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
- assetic/framework: ^3.0
- laminas/laminas-view: ^2.12
- symfony/console: ^4.0 || ^5.0 || ^6.0 || ^7.0
Requires (Dev)
- laminas/laminas-coding-standard: ^2.3
- laminas/laminas-diactoros: ^2.10
- laminas/laminas-mvc: ^3.3
- mezzio/mezzio: ^3.10
- mezzio/mezzio-helpers: ^5.8
- mezzio/mezzio-router: ^3.8
- phpspec/prophecy: ^1.16
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5.28 || ^10.0
- psr/http-server-middleware: ^1.0
- scrutinizer/ocular: dev-master
- slevomat/coding-standard: ^7.2
- squizlabs/php_codesniffer: ^3.6
- vimeo/psalm: ^4.23
- webmozart/assert: ^1.11
Suggests
- laminas/laminas-mvc: When using this module together with Laminas MVC
- leafo/lessphp: Assetic provides the integration with the lessphp LESS compiler
- leafo/scssphp: Assetic provides the integration with the scssphp SCSS compiler
- mezzio/mezzio: When using this module together with Mezzio
- mezzio/mezzio-helpers: When using this module together with Mezzio
- mezzio/mezzio-router: When using this module together with Mezzio
- psr/http-server-middleware: When using this module together with Mezzio
Replaces
- widmogrod/zf2-assetic-module: v3.4.0
README
当前维护的widmogrod/zf2-assetic-module分叉。
特性
- 支持PHP 8.0+
- 移除对PHP <7.4的支持
- 移除对Zend Framework的支持
- 在所有地方使用返回类型和类型提示
- 支持Mezzio(对不起,不支持Expressive)
这是什么?
模块级别的资产管理变得简单。每个模块都可以包含自己的资产(JS、CSS、图片等),此模块确保资产被移动到您的公共文件夹,并在视图中直接可用。
这还有助于您加载使用npm、yarn等安装的Laminas应用程序的所有资产。
- 优化您的资产。压缩CSS、JS;编译scss等...
- 适应您的需求。使用自定义模板引擎并想使用此模块的功能,只需实现
Fabiang\AsseticBundle\View\StrategyInterface
- 经过良好测试。除了单元测试,此解决方案也准备好投入生产使用。
- 良好的基础。基于Assetic和Laminas
- 优秀的社区。一切都得益于GitHub和PHP社区的大力支持!
- 跟踪每个更改。想知道有什么新功能?请查看CHANGELOG.md
- 倾听您的想法。有一个好主意?带来经过测试的拉取请求或打开一个新问题。
安装
阅读Laminas\Mvc快速入门指南或Mezzio快速入门指南?