PHP code example of basilicom-pimcore-plugin / minify

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

    

basilicom-pimcore-plugin / minify example snippets


            $js = new \Minify\Js();
            echo $js->add("/website/static/js/jquery.js")
                ->add("/website/static/js/site.js")
                ->get();
        

            $js = new \Minify\Css();
            echo $js->add("/website/static/css/bootstrap.css")
                ->add("/website/static/icons/icons.css")
                ->add("/website/static/css/site.css")
                ->get();