Project Description
A PHP class library that abstracts PHP language constructs with the goal is to facilitate automated PHP code generation


A PHP class library that abstracts PHP language constructs with the goal is to facilitate automated PHP code generation

The idea is to have PHP classes that represent each (or the most commonly used) PHP language constructs from code units and namespaces to statements and expressions. For instance, a class named CodeNamespace would represent a PHP namespace and would contain members like $Comments and $Types. A class named TypeDeclaration, in turn, would contain members like $Comments, $Members and $BaseTypes etc. These classes could be used to programatically construct an object tree which could be than translated into PHP source code.

The classes are modeled after Microsoft's CodeDOM classes: http://msdn.microsoft.com/en-us/library/650ax5cx

and Zend_CodeGenerator: http://framework.zend.com/manual/en/zend.codegenerator.introduction.html

Last edited Jun 29, 2012 at 4:39 PM by Anonimista, version 2