PHP code example of crodas / asset
1. Go to this page and download the library: Download crodas/asset 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/ */
crodas / asset example snippets
\crodas\Asset\Configure::get()
->store('/tmp/map.php') // It is where temporary info is stored, to speed up things
->detDir('js', __DIR__ . '/public/js', '/js')
->setDir('css', __DIR__ . '/public/css', '/css');
echo Asset::css('base.css', 'style.css');
echo Asset::js('jquery.js', 'jquery-ui.js');