inhere/asset-manager

This package is abandoned and no longer maintained. The author suggests using the php-comp/asset-manager package instead.

a simple php asset manager library.

v0.1.0 2018-11-25 12:37 UTC

This package is auto-updated.

Last update: 2022-02-01 13:11:22 UTC


README

License Php Version Latest Stable Version

项目地址

注意:

  • 代码是要求 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');

License

MIT