Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/promatik/PHP-JS-CSS-Minifier
📉 PHP JS and CSS Minifier uses the APIs provided by Andy Chilton to minify you JS and CSS via PHP curl requests.
https://github.com/promatik/PHP-JS-CSS-Minifier
Last synced: 4 months ago
JSON representation
📉 PHP JS and CSS Minifier uses the APIs provided by Andy Chilton to minify you JS and CSS via PHP curl requests.
- Host: GitHub
- URL: https://github.com/promatik/PHP-JS-CSS-Minifier
- Owner: promatik
- License: mit
- Created: 2013-08-26T17:58:08.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-11-01T13:43:37.000Z (over 2 years ago)
- Last Synced: 2024-01-15T17:50:46.001Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 145
- Watchers: 19
- Forks: 61
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- my-awesome-stars - promatik/PHP-JS-CSS-Minifier - 📉 PHP JS and CSS Minifier uses the APIs provided by Andy Chilton to minify you JS and CSS via PHP curl requests. (PHP)
- awesome-stars - PHP-JS-CSS-Minifier - 📉 PHP JS and CSS Minifier uses the APIs provided by Andy Chilton to minify you JS and CSS via PHP curl requests. (PHP)
README
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
* [Master branch](https://github.com/promatik/php-js-css-minifier/archive/master.zip)## Setup
* How to setup the plugin:```php
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](http://www.opensource.org/licenses/MIT).