PHP code example of evalok / php-assetify

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

    

evalok / php-assetify example snippets


echo $ac->getGroupAsset(
	'css',
	__DIR__ . '/assets/minified-css',
	'/assets/',
	'css'
);

echo $ac->getGroupAsset(
	'js',
	__DIR__ . '/assets/minified-js',
	'/assets/',
	'js'
);

echo $ac->getGroupAssetDeferred(
	'deferred-js',
	__DIR__ . '/assets/deferred-minified-js',
	'/assets/',
	'js'
);