PHP code example of halfpastfouram / zend-headminifier

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

    

halfpastfouram / zend-headminifier example snippets


'Halfpastfour\HeadMinifier'

    'minify_head' => [
        'script' => [
            'enabled'     => true,
            'directories' => [
                'public' => './public',
                'cache'  => './public/js',
            ],
        ],
        'link'   => [
            'enabled'     => true,
            'directories' => [
                'public' => './public',
                'cache'  => './public/css',
            ],
        ],
    ],