cyberrebell/php-minify

glue and minify css and js using php stdlib

dev-master 2015-09-10 12:23 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:22:52 UTC


README

glue and minify css and js using only php stdlib

configuration example:

minify.config.php

return [
    [
        'glue&minify',
        [
            'styles/css/reset.css',
            'styles/css/style.css',
            'styles/css/plugin/calendar.css'
        ],
        'public/css/app.css'
    ],
    [
        'glue&minify',
        [
            'js/jquery.js',
            'js/tracking.js',
            'js/helper.js'
        ],
        'public/js/app.js'
    ]
];

usage:

<?php
include 'vendor/autoload.php';

use PhpMinify\Launcher\MinifyLauncher;

$launcher = new MinifyLauncher(include 'minify.config.php');
$launcher->run();