PHP Classes
elePHPant
Icontem

Zend Framework Models Generator: Generate model classes from MySQL databases

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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  
2014-05-02 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 391 This week: 3All time: 6,102 This week: 433Up
Version License PHP version Categories  
zf-generate-models 3.1MIT/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
Name: Giovanni Ramos <contact>
Classes: 5 packages by
Country: Brazil Brazil
Age: 33
All time rank: 123683 in Brazil Brazil
Week rank: 111 Up3 in Brazil Brazil Up

Details provided by the author  
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_quickstart.png
  • zf_generate_models.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:391All time:6,102
 This week:3This week:433Up
 User Comments (2)  
 
Very useful tool, thanks :)
1 year ago (Younes NCIRI)
70%StarStarStarStar
Would have been better if it could handle modules as well as ...
2 years ago (simon bolsover)
20%StarStar