cyberrebell/php-minify

glue and minify css and js using php stdlib

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/cyberrebell/php-minify

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

This package is not auto-updated.

Last update: 2025-09-27 22:38:26 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();