The UML2PHP5 plugin for Dia allows for the automatic generation of PHP code from UML diagrams.
The best part about UML2PHP5 is that it is an Open Source tool released under the GPL license. You can modify the source code according to your requirements and redistribute it as long as it remains under the GPL terms.
Using UML2PHP5 is a breeze. All you need to do is draw your UML diagram(s), save it with the .dia file extension, and export it through the XSL filter in the *.code format. A popup window will appear, where you need to select UML-CLASSES-EXTENDED in the top box and PHP5 in the bottom box. Once you click on OK, the plugin will generate as many .class.php files as necessary in the same directory as the original .dia file.
In the latest version of UML2PHP5, a new tool called 'php2uml' has been added, which generates UML diagrams from PHP classes files. This tool is based on the Reflection API and makes it easy to create diagrams from existing PHP code. Overall, UML2PHP5 is an excellent plugin that simplifies the process of generating PHP code from UML diagrams.
Version 2.2.0: N/A