Download the PHP package yanli0303/yii-minify-client-script without Composer
On this page you can find all versions of the php package yanli0303/yii-minify-client-script. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yanli0303/yii-minify-client-script
More information about yanli0303/yii-minify-client-script
Files in yanli0303/yii-minify-client-script
Download yanli0303/yii-minify-client-script
More information about yanli0303/yii-minify-client-script
Files in yanli0303/yii-minify-client-script
Vendor yanli0303
Package yii-minify-client-script
Short Description A PHP Yii framework extension to minify JavaScript and CSS files for a web page.
License MIT
Package yii-minify-client-script
Short Description A PHP Yii framework extension to minify JavaScript and CSS files for a web page.
License MIT
Please rate this library. Is it a good library?
Informations about the package yii-minify-client-script
Yii-MinifyClientScript
By Yan Li
A PHP Yii framework extension to minify JavaScript and CSS files for a web page.
How does it work?
- Minify each JavaScript and CSS files before deployment (during build stage):
- For each JavaScript/CSS file we have, generated a minified version in same directory, and name it with a .min suffix;
- e.g. Minified version of
~/src/css/style.css
should be named as~/src/css/style.min.css
- Concatenate the JavaScript/CSS files required on the page at run-time
Usage
- Create a new extension directory for your Yii application:
~/protected/extensions/minify
- Download both src/MinifyClientScript.php and LICENSE.md, put them into
~/protected/extensions/minify
- Update your Yii application configuration file(usually named
/protected/config/main.php
) and replace the Yii CClientScript withMinifyClientScript
- Before deploying, minify the individual JavaScript and CSS files:
- You can do it with Ant-MinifyJsCss
- Pack your application sources and deploy
Sample Yii application configuration file:
NOTE
It requires sticky session from load balance server, otherwise you'll encounter HTTP 404 problems.
Alternatives
- EClientScript: https://github.com/muayyad-alsadi/yii-EClientScript
All versions of yii-minify-client-script with dependencies
PHP Build Version
Package Version
The package yanli0303/yii-minify-client-script contains the following files
Loading the files please wait ....