compared with
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (15)

View Page History
* This component *will* minify Javascript.
* This component *will* accept both filenames and strings as input to the filter() method.
* This component *will* support writing the minified Javascript to a file.
* This component *will* implement Zend_Filter_Interface
* This component *will* generate valid Javascript code
* This component *will* implement an adapter system allowing for different methods of minification
* This component *will* provide options for control of minification (such as opting not to remove comments, for example)
* Zend_Filter
* Zend_Filter_Interface
* Zend_Filter_Exception
This component can be integrated into other framework components, such as HeadScript view helper for automatic Javascript minification.

The component is used like any other Zend_Filter_* component, passing the string (or filename) to be minified to the filter() method.

* Milestone 1: [design notes will be published here|]
* Milestone 21: Working prototype checked into the incubator supporting minification of Javascript strings
* Milestone 32: Working prototype checked into the incubator supporting minification of Javascript files (and optionally writing output to a file)
* Milestone 43: Unit tests exist, work, and are checked into SVN.
* Milestone 54: Initial documentation exists.

* Zend_Filter_Minify_Exception
* Zend_Filter_Minify_Javascript
* Zend_Filter_Minify_Javascript_JsMin
* Zend_Filter_Minify_Interface

$minified = $filter->filter('alert("hello world");');

||UC-02 Minifying a javascript file||
$filter = new Zend_Filter_Minify_Javascript();

$minified = $filter->filter('/path/to/my/javascript.js');

class Zend_Filter_Minify_Exception extends Zend_Filter_Exception {}


* Zend Framework
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to so we can send you a copy immediately.
* @category Zend
* @package Zend_Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (
* @license New BSD License
* @version $Id: Int.php 20096 2010-01-06 02:05:09Z nd987 $

* @see Zend_Filter_Interface