πŸ“‰ PHP JS and CSS Minifier uses the APIs provided by Andy Chilton to minify you JS and CSS via PHP curl requests.
Switch branches/tags
Nothing to show
Clone or download
promatik Merge pull request #2 from chilts/patch-1
Use the https URLs for each site
Latest commit dc96a3a Feb 24, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Aug 26, 2013
README.md Update README.md Aug 27, 2013
minifier.php Use the https URLs for each site Feb 23, 2016
minify.php Create minify.php Aug 26, 2013

README.md

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 = array(
	"js/application.js" 	=> "js/application.min.js",
	"js/main.js" 			=> "js/main.min.js"
);
$css = array(
	"css/application.css"	=> "css/application.min.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.