Top Level :: Tools and Utilities

Package Information: ScriptReorganizer

This package is not maintained, if you would like to take over please go to this page.
» Summary » License
Library/Tool focusing exclusively on the file size aspect of PHP script optimization. LGPL
» Current Release » Bug Summary
0.4.0 (alpha) was released on 2005-11-21 by sfrausch (Changelog)
Easy Install

Not sure? Get more info.

pear install ScriptReorganizer

Development Roadmap (next release: 1.0.0RC1 in -6041 days!!, 0% complete)
No open bugs
Report a new bug to ScriptReorganizer
» Description
ScriptReorganizer has the ability to reorganize source code in different (incremental) ways:

- File: one-to-one (Script) or many-to-one (Library) optimization.

- Source: EOL (Route), comment (Quiet) and whitespace (Pack) optimization.

Plugin functionality is available by means of the Decorator Pattern.

It is highly recommended to follow the best practice detailed out below, when using this package:

1. Running of all tests before building releases to deploy.

2. Reorganization of the source code file(s) with ScriptReorganizer.

3. Running of all tests - not only unit tests!

4. Final building of the release to deploy.

If the extreme mode of the pack strategy is used for packaging, a non-ScriptReorganized source code tree should be shipped together with the optimized one, to enable third parties to track down undiscoverd bugs.

Same applies for (complex) applications that are pharized, i.e. optimized and packaged with PHP_Archive, as well as for bcompiled scripts.

ANN: Currently only 'pure' PHP code can be reorganized. Look into the folder <root/>PEAR/docs/ScriptReorganizer for more information in depth.
» Maintainers » More Information

Dependencies for ScriptReorganizer

  • PHP 5.0.3
  • bcompiler extension 0.6 (Optional)
  • PHP_Archive 0.5.0 (Optional)
  • PHPUnit2 2.3.0 (Optional)