So you also need an internet connection alive before running it.Ĥ) Once the utility is started, click "_Generate classes_" button.Īfter running the utility you will find all generated classes into "beans"Īuto generated classes are prefixed with "Bean".Įach auto generated class uses bean\ for configuration info.Įach auto generated class uses Model.php and MySqlRecord.phpĪn auto generated MySQL class provides the following services:Ī constructor for managing a fetched table?s row or for a adding a new one Http/localhost/util/app_create_beans.php Note that, the GUI of the utility uses Bootstrap and jQuery from CDN. To generate PHP classes with the purpose of mapping database tables you need to:ġ) IMPORTANT! Use lowercase with the underscore, which is the widely used MySQL naming notation, on your database tables and fields names.Ģ) Configure your database schema by modifying util\mysqlreflection\ file and, assigning appropriate values to DBHOST, DBNAME, DBUSER, DBPASSWORD, and DBPORT PHP constants, according to your MySQL settings. Package is extracted from my personal PHP Web MVC Framework. The utility generates automatically PHP classes for any tables of a given database MySQLReflection A useful utility for the Object Relation Mapping of MySQL databases