saeven / laminas-assetic
Laminas+Assetic module that provides complete integration of Assetic library for PHP 8.1.
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-12-18 04:36:08 UTC
README
Manage your Laminas assets in conjunction with assetic/framework, wired through Laminas config.
Acknowledgements
- Original version - widmogrod/zf2-assetic-module.
- Subsequent fork - fabiang/assetic-module.
- Both of which relied on the original kriswallsmith/assetic.
Credit given to all predecessors, thank you.
Todo
- Connect tests to a proper GitHub action
- Fix this README and its links
What is this?
Assets management per module made easy. Every module can come with their own assets (JS, CSS, Images etc.) and this module make sure the assets are moved into your public folder and are directly available in your views.
This also helps you to load all assets for your Laminas application which you've installed with npm, yarn etc.
- Optimize your assets. Minify your css, js; compile scss, and more...
- Adapts To Your Needs. Using custom template engine and want to use power of this module, just implement
Circlical\AsseticBundle\View\StrategyInterface
- Well tested. Besides unit test this solution is also ready for the production use.
- Great fundations. Based on Assetic and Laminas
- Excellent community. Everything is thanks to great support from GitHub & PHP community!
- Listen to your ideas. Have a great idea? Bring your tested pull request or open a new issue.
Installation
Read the quick start guide for Laminas\Mvc or the quick start guide for Mezzio?
Documentation
- How to start with Laminas MVC?
- How to start with Mezzio?
- Configuration
- Tips & Tricks
- Migration guide
Developing
We've two main branches here:
- master: current version with dropped Zend Framework and added Mezzio support
- 2.x: version compatible with Zend Framework 2/3 and Laminas