PHP code example of gulch / assets
1. Go to this page and download the library: Download gulch/assets library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gulch / assets example snippets
use gulch\Assets\Asset;
use gulch\Assets\Renderer\BodyCssRenderer;
$bodyCss = new Asset(new BodyCssRenderer);
$bodyCss->add('asset1.css')->add('asset2.css');
// ...
$bodyCss->add('asset3.css');
// ... and in your html template just write
$bodyCss->write();