pablosanches / sloth
Simple system to control cache
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
Adaptation of psr 16 to cache html, css and js files
Installation
All you have to do is give a git clone in this repository and run a composer install in the root folder of the project ;).
Install the dependencies and devDependencies and start the server.
```sh
composer require pablosanches/sloth:
```
Usage
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 --');