2017 © Pedro Peláez
 

library orm-generator

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

image

pedro151/orm-generator

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  • Wednesday, July 26, 2017
  • by pedro151
  • Repository
  • 1 Watchers
  • 2 Stars
  • 114 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 16 Versions
  • 16 % Grown

The README.md

orm-generator

Travis build status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

ORM Generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development., (*2)

uses various types of databases like Postgres and Mysql and various types of ORM framework., (*3)

Install

install via composer or download the file phar., (*4)

Install via composer:
$ composer require pedro151/orm-generator`
$ composer install`
Download phar:

Creating config file

use the following command to create the configuration file needed to get started:, (*5)

$ php orm-generate.phar --init

OR, (*6)

$ php generator.php --init

Configuration

setting is in configs/config.ini if you do not use frameworks adapter, if you use the adapter configuration comes straight from the framework as Zend framework and others., (*7)

PHP Code Generation

Open the prompt in the directory orm-generator and write:, (*8)

$ php generate.php

Or Open the prompt in the directory bin and write:, (*9)

$ php orm-generate.phar

Configurations optionals

Command description
--init Creates the necessary configuration file to start using the ORM Generator.
--name-ini reference to another .ini file configuration (relative path).
--config-env ORM Generator configuration environment.
--framework name framework used, which has the contents of the database configurations and framework template.
--driver database driver name (Ex.: pgsql, mysql).
--database database name.
--schema database schema name (one or more than one).
--tables table name (parameter can be used more then once).
--clean-trash delete all files that do not belong to your Database due.
--status show status of implementation carried out after completing the process.
--version shows the version of ORM Generator.
--help help command explaining all the options and manner of use.
--path specify where to create the files (default is current directory).
--update Upgrade to latest version.
--download download the reported version (ex. --download=1.5.0).
example:

in prompt, (*10)

$ php generate.php --framework=zf1 --database=foo --driver=pgsql --status

Support Database

  • [x] Postgres
  • [x] Mysql
  • [x] Dblib
  • [x] Mssql
  • [x] Sqlserver

Framework Class Generator ORM

- Classes Overwrite: Classes should not be personalized, they will be rewritten every generation of classes. , (*11)

Frameworks Config Name Version Generate Classes Classes Overwrite
Zend Framework zf1.12 1.12 DbTable, Entity, Model DbTable, Entity
Phalcon phalcon 3.0 Entity, Model, Peer Entity

The Versions

26/07 2017

1.6.x-dev

1.6.9999999.9999999-dev

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mssql mysql datamapper phalcon dao orm-generator

30/03 2017

dev-master

9999999-dev

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mssql mysql datamapper phalcon dao orm-generator

30/03 2017

v1.6.2

1.6.2.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mssql mysql datamapper phalcon dao orm-generator

29/03 2017

v1.6.1

1.6.1.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mssql mysql datamapper phalcon dao orm-generator

02/02 2017

v1.6.0

1.6.0.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

18/01 2017

v1.5.2

1.5.2.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

05/12 2016

v1.5.1

1.5.1.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

02/12 2016

v1.5.0

1.5.0.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

24/10 2016

v1.4.9

1.4.9.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

24/10 2016

v1.4.8

1.4.8.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

20/10 2016

v1.4.4

1.4.4.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

03/08 2016

v1.4.2

1.4.2.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

14/07 2016

v1.3.1

1.3.1.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

10/05 2016

v1.3.0

1.3.0.0

orm-generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model zend entity mapper mysql datamapper phalcon dao orm-generator

28/04 2016

v1.2.1

1.2.1.0

ORM-Generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model entity mapper mysql datamapper dao orm-generator

25/04 2016

v1.2.0

1.2.0.0

ORM-Generator maps the entire database and then creates the DAO (Data Access Object) and ORM (Object-relational mapping) of the entire database to facilitate the development. uses various types of databases like Postgres and Mysql and various types of ORM framework.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar pedro151

orm database postgres generator model entity mapper mysql datamapper dao orm-generator