PHP Classes

PHP Model Class Generator: Generate model classes from MySQL SQL dump files

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 27%Total: 495 All time: 5,857 This week: 74Up
Version License PHP version Categories
modelgenerator 1.0.1The PHP License5PHP 5, Databases, Code Generation


This class can generate model classes from MySQL SQL dump files.

It can parse the SQL statements of a MySQL SQL dump file and extract values of tables and fields that will be mapped in model classes.

The class generates class files with setters and getters to access each table field value.

Innovation Award
PHP Programming Innovation award nominee
September 2017
Number 12
Model classes allow the developers to write code that accesses database table records using class objects.

Model classes can be generated from information of the database table schema.

This package can parse MySQL database table dump files to extract the table structure information to generate the code for the model classes.

Manuel Lemos
Picture of Lucas Figueiredo
  Performance   Level  
Name: Lucas Figueiredo is available for providing paid consulting. Contact Lucas Figueiredo .
Classes: 2 packages by
Country: Brazil Brazil
Age: 38
All time rank: 3209240 in Brazil Brazil
Week rank: 170 Up13 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x


include 'ModelGenerator.php';
$model = new ModelGenerator('./schema.sql', './files');


  Files folder image Files  
File Role Description
Accessible without login Plain text file example_use.php Example Example script
Accessible without login Plain text file license.txt Doc. Documentation
Plain text file ModelGenerator.php Class Class source
Accessible without login Plain text file schema.sql Data Auxiliary data
Plain text file Stream.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,857
This week:74Up
User Ratings User Comments (2)
 All time