|Classes of Saro Carvello||MySQL Class Generator||README.md||Download|
A useful utility for the Object Relation Mapping of MySQL databases
The utility generates automatically PHP classes for any tables of a given database schema.
Package is extracted from my personal PHP Web MVC Framework.
To generate PHP classes with the purpose of mapping database tables you need to:
1) IMPORTANT! Use lowercase with the underscore, which is the widely used MySQL naming notation, on your database tables and fields names.
2) Configure your database schema by modifying
3) Then, launch the tool by typing:
4) Once the utility is started, click "_Generate classes_" button.
After running the utility you will find all generated classes into "beans" folder.
An auto generated MySQL class provides the following services:
Developers can quickly use these classes on their application.
Into the beans directory are located some auto generated classes of a MySQL schema.
DDL for MySQL schema is into a script file located into "sql" directory.
There is also a simple tester script "app_run_bean.php" for showing usage of a generated class.
UML Class Model
Convert MySQL into PHP Classes automatically - Video Tutorial (old user interface)
Many and many thanks to for granting me an open source license of magic
that I used in the development of MySQLReflection.