PHP Classes

Zend Framework Models Generator: Generate model classes from MySQL databases

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog (2)    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (4 days ago) RSS 2.0 feedNot enough user ratingsTotal: 459 All time: 6,081 This week: 90Up
Version License PHP version Categories
zf-generate-models 3.10MIT/X Consortium ...5PHP 5, Databases, Libraries, Code Gen...
Description 

Author

This package can generate Zend Framework model classes from database as MySQL, PostgreSQL and SQLite.

It can query a given database to retrieve the list of tables and their fields.

It generates model classes for one table or for all tables of the specified database.

Picture of Giovanni Ramos
  Performance   Level  
Name: Giovanni Ramos <contact>
Classes: 5 packages by
Country: Brazil Brazil

Details

ZEND FRAMEWORK MODELS GENERATOR ====================== ## About ## Models Generator for the Zend Framework 1 (ZF1). This script aims to automate the creation and access of the database models. To facilitate access to the elements of a data model, two abstract classes have been created and are available to perform this task. ## Installation ## **Git clone** Install the ZF1 Models Generator: git clone git@github.com:giovanniramos/zf_generate_models.git Install the ZF1 Quick Start: git clone git@github.com:giovanniramos/zf_quickstart.git **Installation structure** <project name>/ |-- application/ |-- library/ | |-- App/ | | `-- Model/ | | |-- Mapper/ | | | `-- Abstract.php | | `-- Abstract.php |-- public/ `-- scripts/ `-- zf1_generator/ Copy the folder `zf1_generator` to the directory: <project name>/scripts/ Copy the folder `App` located in `zf1_library`, and paste in: <project name>/library Add to your `application.ini` the following Namespaces: autoloaderNamespaces[] = "App" To run and test the script, go to the url: <host name>/scripts/zf1_generator And generate the "Models" the Guestbook database, which is present in the package ZF1 Quick Start. Then run the application! That's all you need to do. ## License ## Copyright (c) 2013 [Giovanni Ramos](https://github.com/giovanniramos) Distributed under the [MIT License](http://www.opensource.org/licenses/MIT) (MIT-LICENSE.txt) [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/giovanniramos/zf_generate_models/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Screenshots  
  • zf_generate_models.png
  • zf_quickstart.png
  Files folder image Files  
File Role Description
Files folder imagezf1_generator (2 files, 1 directory)
Files folder imagezf1_library (1 directory)
Accessible without login Plain text file MIT-LICENSE.txt Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  zf1_generator  
File Role Description
Files folder imageassets (3 directories)
  Plain text file Generator.class.php Class Generator class
  Accessible without login Plain text file index.php Appl. Application script

  Files folder image Files  /  zf1_generator  /  assets  
File Role Description
Files folder imagecss (3 files)
Files folder imageimg (2 files)
Files folder imagejs (4 files)

  Files folder image Files  /  zf1_generator  /  assets  /  css  
File Role Description
  Accessible without login Plain text file bootstrap-responsive.min.css Data Auxiliary data
  Accessible without login Plain text file bootstrap.min.css Data Auxiliary data
  Accessible without login Plain text file jquery-ui.css Data Auxiliary data

  Files folder image Files  /  zf1_generator  /  assets  /  img  
File Role Description
  Accessible without login Image file glyphicons-halflings-white.png Icon Icon image
  Accessible without login Image file glyphicons-halflings.png Icon Icon image

  Files folder image Files  /  zf1_generator  /  assets  /  js  
File Role Description
  Accessible without login Plain text file bootstrap.min.js Data Auxiliary data
  Accessible without login Plain text file jquery-1.8.0.min.js Data Auxiliary data
  Accessible without login Plain text file jquery-scroll-pane.js Data Auxiliary data
  Accessible without login Plain text file jquery-ui.min.js Data Auxiliary data

  Files folder image Files  /  zf1_library  
File Role Description
Files folder imageApp (1 directory)

  Files folder image Files  /  zf1_library  /  App  
File Role Description
Files folder imageModel (1 file, 1 directory)

  Files folder image Files  /  zf1_library  /  App  /  Model  
File Role Description
Files folder imageMapper (1 file)
  Plain text file Abstract.php Class Class source

  Files folder image Files  /  zf1_library  /  App  /  Model  /  Mapper  
File Role Description
  Plain text file Abstract.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 88%
Total:459
This week:0
All time:6,081
This week:90Up
User Comments (2)
Very useful tool, thanks :)
9 years ago (Younes NCIRI)
70%StarStarStarStar
Would have been better if it could handle modules as well as ...
10 years ago (simon bolsover)
20%StarStar