Simple PHP generator from UML class diagram using Acceleo templates.
Model to text (m2t) source is located in simple-php/codegen
folder while generator is described by simple-php/generator.xml
file.
Class diagrams contained in an UML project are used for PHP code generation and follows this rules in order to translate UML elements to PHP.
UML | PHP |
---|---|
Package | Namespace |
Class | Class |
Interface | Interface |
Property | Variable |
Operation | Function |
Enumeration | Abstract class with constants |