• Stars
    star
    145
  • Rank 253,196 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 11 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“‰ PHP JS and CSS Minifier uses the APIs provided by Andy Chilton to minify you JS and CSS via PHP curl requests.

PHP, JS and CSS Minifier

Description

With this plugin, you can minify you js's and css's via PHP providing input and output path's. This plugin uses an online service provided by Andy Chilton, http://chilts.org/

Download

Setup

  • How to setup the plugin:
include_once 'minifier.php';

$js = [
    'js/main.js' => 'js/main.min.js',
    // ...
];
$css = [
    'css/main.css'=> 'css/main.min.css',
    // ...
];

minifyJS($js);
minifyCSS($css);

Features

  • Instantly compress all your JS's and CSS's
    This allows you to add js and css files to a list, that you can minify at any time.

Requirements

  • PHP Webserver

License

Released under the MIT license.