php-comp / asset-manager
a simple php asset manager library.
v0.1.0
2018-11-25 12:37 UTC
Requires
- php: >7.1
- toolkit/file-utils: ~1.0
Suggests
- matthiasmullie/minify: compress css and js. if you want to compress assets.
This package is auto-updated.
Last update: 2024-11-26 21:36:48 UTC
README
项目地址
注意:
- 代码是要求
php >= 7
的
安装
- 使用
composer require
composer require php-comp/asset-manager
- 使用
composer.json
编辑 composer.json
,在 require
添加
"php-comp/asset-manager": "dev-master",
然后执行: composer update
- 直接拉取
git clone https://github.com/inhere/php-asset-manager.git // github
快速开始
PHP输出资源
$router = new \Inhere\Route\Router; $router->get('/assets/(css|js)/([\w.-]+)\.(css|js)', AssetController::class . '@output');