idrinth / entity-generator
从给定的数据库生成实体。
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-08-24 05:08:08 UTC
README
从给定的数据库生成实体,并提供了可选的处理方式。
检查
示例
<?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'));