Skip to content

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

Notifications You must be signed in to change notification settings

misteregis/PHP-JS-CSS-Minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

PHP, JS and CSS Minifier

Description

This plugin is a modified version of PHP, JS and CSS Minifier by promatik, with this plugin, you can minify you js's and css's via PHP, it will create a file with .min, example: css/style.css > css/style.min.css. This plugin uses an online service provided by Andy Chilton, http://chilts.org/

Download

How to use the plugin:

  • Use with Array
    $array = array(
        "js/application.js",
        "css/application.css"
    );

    minify($array);
  • Use with Object Class
    $object = new stdClass();
    $object->file1 = 'js/application.js';
    $object->file2 = 'css/application.css';

    minify($object);
  • Use with Parameters
    minify("js/main.js", "css/main.css");
  • Or use with all options
    // Array
    $array = array(
        "js/application.js",
        "css/application.css"
    );

    // Object Class
    $object = new stdClass();
    $object->file1 = 'js/application.js';
    $object->file2 = 'css/application.css';

    // Object Array
    $arrayObject = (object) array(
        "css/main.css",
        "js/main.js"
    );

    minify($array, $object, $arrayObject, "js/main.js", "css/main.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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages