idrinth/entity-generator

Generates entities from a given database.

1.0.2 2017-03-10 23:26 UTC

This package is auto-updated.

Last update: 2024-10-24 05:39:56 UTC


README

Generates entities from a given database and provides optional handling of them.

Checks

Travis php 5.3-7.1: Travis Status

Codacy: Codacy Badge Codacy Badge

Codeclimate: Issue Count Code Climate

Example

<?php
//generate entities for a schema named test and a schema named tester
//existance an autoloader is expected
$generator =  new \De\Idrinth\EntityGenerator\EntityGenerator(
                new \PDO('mysql:host:localhost', 'root', ''),
                __DIR__.DIRECTORY_SEPARATOR.'{{schema}}',
                'De\Idrinth\EntityGenerator\Test'
            );
$object->run(array('test','tester'));