pablosanches / sloth
简单的缓存控制系统
dev-master
2021-10-01 14:56 UTC
Requires
Requires (Dev)
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2021-10-01 14:56:48 UTC
README
将psr 16适配到缓存HTML、CSS和JS文件
安装
您只需要在这个仓库中执行git clone,然后在项目的根目录下运行composer install即可;()
安装依赖和开发依赖,并启动服务器。
```sh
composer require pablosanches/sloth:
```
使用
use PabloSanches\Sloth\Cache; use PabloSanches\Sloth\CSS; $cache = new Cache(CSS::create(array( 'path' => $this->path, 'minify' => true ))); $result = $cache->set('style.css', '//-- CSS content here --');