PHPX Documentation
This is documentation for PHPX -- an automatic PHP transformer.
Architecture
System Architecture
System works in following steps:
- A set of PHP files is parsed and the code trees are build (PHPParser).
- A set of initial transformations is applied to the code (phpPreNormalizers).
- Parser reads code transformation rules from configuration files. Rules are read using RuleParser by RuleSystem.
- Rules are applied to code tree in one or many passes (RuleContext and NamedContext)
- Some post transformations are applied (phpPostNormalizers and tplPostNormalizers).
- Resulting HTML is normalized and searched for common parts (HTMLBox).
- Finals results are written to files.
The main program class is PHPFiles, which executes all above actions.
Online-demo
To run online demo click here.
Source-code
Download source code
Generated on Fri Nov 21 17:54:02 2003 for PHPX by
1.3.3