idrinth / entity-generator
Generates entities from a given database.
1.0.2
2017-03-10 23:26 UTC
Requires
- php: >=5.3.3|7.*
- ext-pdo: *
- twig/twig: 1.32.*
Requires (Dev)
- codacy/coverage: dev-master
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2024-11-24 05:49:12 UTC
README
Generates entities from a given database and provides optional handling of them.
Checks
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'));