PHP code example of drips / minimize

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

    

drips / minimize example snippets




use Drips\Minimize\Compiler;

$minimizedCSS = Compiler::compile($css, Compiler::CSS);



use Drips\Minimize\Compiler;

$minimizedJS = Compiler::compile($js, Compiler::JS);



$router->add('css', '/css/{file}.css', Drips\Minimize\CssController::class)



use Drips\Minimize\Compiler;

$router->add('js', '/js/{file}.js', Drips\Minimize\JsController::class)