PHP code example of gourmet / assetic

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

    

gourmet / assetic example snippets


echo $this->Assetic->css('cake.generic', ['debug' => false, 'filters' => 'cssmin']);
echo $this->Assetic->css(['cake.generic' => 'cssmin'], ['debug' => false]);
echo $this->Assetic->css('cake.generic');

$this->Assetic->css('cake.generic', ['filters' => 'cssmin,?uglify']);