Skip to content

CodeIgniter Library version of the PHP port of Douglas Crockford's JSMin JavaScript minifier.

License

Notifications You must be signed in to change notification settings

nyfagel/codeigniter-jsmin-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter JSMin Spark

This is a CodeIgniter Spark that provides jsmin.php, a PHP implementation of Douglas Crockford's JSMin by Ryan Grove, inspired by the minify spark by Jens Segers.

Usage

As a spark

First, install the spark by running

$ php tools/spark install jsmin

Then, in your code:

$this->load->spark('jsmin/1.0.7');

$minified = minifyjs($source);

Directly into your project

First, install it by copying libraries/jsmin.php into application/libraries and helpers/jsmin_helper.php into application/helpers.

$this->load->helper('jsmin');

$minified = minifyjs($source);

Alternatives

An alternative to this library is the CodeIgniter driver spark by Jens Segers which inspired this one: github.com/jenssegers/CodeIgniter-Minify.

References

License

Copyright

About

CodeIgniter Library version of the PHP port of Douglas Crockford's JSMin JavaScript minifier.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.4%
  • JavaScript 0.6%