PHP code example of kohana-modules / minify

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

    

kohana-modules / minify example snippets


  return array(
    'groupsConfig' => array(
      'css' => array('//css/file1.css', '//css/file2.css', '//css/file3.css'),
      'js' => array('//js/jquery.js', '//js/modernizr.js', '//js/plugin/orbit.js')
    )
  );
html
  Kohana::modules(array(
    'minify' => MODPATH.'minify', // Minify
  ));
html
 echo html::style('min?g=css') // or html::style('min/css')