PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 27%Total: 496 All time: 5,850 This week: 38Up
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: 38
All time rank: 3210240 in Brazil Brazil
Week rank: 206 Up18 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 (5)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:496
This week:0
All time:5,850
This week:38Up
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:4388