PHP code example of peehaa / minifine

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

    

peehaa / minifine example snippets


    $minifier = (new \Minifine\Factory())->build('/path/to/resources', true);

    <head>
        <meta charset="UTF-8">
        <title>Page title</title>
        <?= $minifier->css(['/css/bootstrap.min.css', '/css/jquery.ui.min.css', '/css/theme.css', '/css/custom.css'], '/css/min.css');