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: 494 This week: 1All time: 5,859 This week: 560Up
Version License PHP version Categories
modelgenerator 1.0.1The PHP License5PHP 5, Databases, Code Generation
Description 

Author

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: 37
All time rank: 3207239 in Brazil Brazil
Week rank: 411 Up35 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 2x

Example

<?php
include 'ModelGenerator.php';
$model = new ModelGenerator('./schema.sql', './files');
$model->run();


?>


  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  
 100%
Total:494
This week:1
All time:5,859
This week:560Up
User Ratings User Comments (2)
 All time
Utility:25%StarStar
Consistency:41%StarStarStar
Documentation:41%StarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:27%StarStar
Rank:4320