PHP code example of gears / assetmini

1. Go to this page and download the library: Download gears/assetmini 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/ */

    

gears / assetmini example snippets


use Gears\AssetMini\HtmlHelper as AssetMini;

AssetMini::setBaseUrl('http://example.org/custom/path/to/assets');

AssetMini::setBasePath('/var/www/vhosts/example_org/custom/path/to/assets');

AssetMini::js
([
	'modernizr',
	'jquery.jquery',
	'jquery.migrate',
	'jquery.plugins.googlemaps'
]);

// Add to the providers array 
'Gears\AssetMini\Laravel\ServiceProvider'

// Add to the aliases array
'AssetMini' => 'Gears\AssetMini\Laravel\Facade'
Globalise.php
config/app.php