PHP Class Generator

This project is no longer supported since all the code is transferred to the Code Generator Project. For further information on how to manage with the new Code generator, please consult the tutorials there and see the bug 106 for special cases that need to be considered.

Coming from programing database based web application in Java where there is an object representing the data of one record of a table I use the same approach programing web applications in PHP. But I quickly got tiered of rewriting the same code over and over again for each table in a slightly diferent version. Therfore I put all on hold and created an Eclipse plugin wizard that generates the base PHP class. This is done by analysing the structure of the table in question and an XML template.

The plug-in stands under the GNU General Public License.

For this application to work you will need to run your Eclipse with at least JVM 1.5 and Eclipse 3.3.


Download the current version:

As of Version 1.0.1 the PDT project is an implicit requirement, but it ist not listed as a dependency because the plugin can also be used with PHP Eclipse as in version 1.0.0. You have use on of either. If you wish to use PHP Eclipse without PDT consult the support section.


1.0.0 => 1.0.1

Hook the wizard into the category PHP provided by the PDT Project instead of the PHP category of PHP Eclipse.

1.0.1 => 1.0.3 (1.0.2 was internal release)

New constants added to include the database data supplied in the wizzard.


A tutorial is available at my blog.

Upgrading from Version 1.0.0 to 1.0.1: 1.0.0 works with PHP Eclipse while 1.0.1 uses PDT. PDT will be further supported. If you wish to use it with PHP Eclipse you have to uncomment the in plugin.xml designated part indicated in which category the wizard is hooked in. If you choose to upgrade from 1.0.0 to 1.0.1 make sure to remove the plugin in version 1.0.0. Eventualy you have to start eclipse with the clean argument.

The upgrade from 1.0.0 to 1.0.1 is manualy possibly by changing the attribute category in the wizart tag in the plugin.xml to ' org.eclipse.php.project.ui'.

Further support can be obtained through the Code generator buglist.

This Project is hosted by