saeven / laminas-assetic
Laminas+Assetic 模块,为PHP 8.1提供Assetic库的完整集成。
dev-main
2022-04-25 17:54 UTC
Requires
- php: ~8.0.12 || ^8.1
- assetic/framework: v3.0.0
- laminas/laminas-view: ~2.20
- symfony/console: ^4.0 || ^5.0
Requires (Dev)
- laminas/laminas-coding-standard: ^2.3.0
- laminas/laminas-diactoros: ^2.5
- laminas/laminas-eventmanager: ^3.4.0
- laminas/laminas-mvc: ^3.1
- mezzio/mezzio: ^3.2
- mezzio/mezzio-helpers: ^5.4
- mezzio/mezzio-router: ^3.2
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.4
- psr/http-server-middleware: ^1.0
- vimeo/psalm: ^4.2
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
This package is not auto-updated.
Last update: 2024-09-11 03:26:50 UTC
README
使用Laminas配置与assetic/framework协同管理您的Laminas资产。
致谢
- 原始版本 - widmogrod/zf2-assetic-module。
- 后续分支 - fabiang/assetic-module。
- 两者都依赖于原始的kriswallsmith/assetic。
向所有前辈致以敬意,谢谢。
待办事项
- 将测试连接到合适的GitHub动作
- 修复此README及其链接
这是什么?
简化模块级别的资产管理。每个模块都可以有自己的资产(JS、CSS、图片等),此模块确保资产被移动到您的公共文件夹,并在您的视图中直接可用。
这还有助于您加载使用npm、yarn等安装的所有Laminas应用程序的资产。
- 优化您的资产。压缩CSS、JS;编译SCSS等...
- 适应您的需求。使用自定义模板引擎并希望使用此模块的功能,只需实现
Circlical\AsseticBundle\View\StrategyInterface
- 经过良好测试。除了单元测试之外,此解决方案也适合生产使用。
- 良好的基础。基于Assetic和Laminas
- 优秀的社区。这一切都归功于GitHub和PHP社区的大力支持!
- 倾听您的想法。有一个好主意吗?带来您测试过的pull请求或打开一个新的问题。
安装
阅读Laminas\Mvc的快速入门指南或Mezzio的快速入门指南?
文档
开发
这里有两大主要分支
- master:当前版本,已移除Zend Framework并添加Mezzio支持
- 2.x:与Zend Framework 2/3和Laminas兼容的版本