zazalt / entitymaker
EntityMaker
dev-master
2017-02-24 23:04 UTC
Requires
- php: >=7.1.0
- zazalt/databaser: dev-master
- zazalt/omen: dev-master
- zazalt/strink: dev-master
- zazalt/system: dev-master
This package is not auto-updated.
Last update: 2024-12-27 23:16:26 UTC
README
Requirements
- php >= 7.1.0
Packagist Dependencies
Installation
With composer:
{ "require": { "zazalt/entitymaker": "dev-master" } }
Usage
$EntityMaker = new Zazalt\EntityMaker\EntityMaker(); $EntityMaker ->setEngine(Zazalt\Omen\Omen::ENGINE_POSTGRESQL) // 'postgresql' ->setUsername('your_username') // If not set, default is 127.0.0.1 ->setPassword('your_password') // If not set, default is 5432 (PostgreSQL default port) ->setDatabase('your_database_name') ->setNamespace('Entity') ->setExtends('\YourNamespace\YouClass') //->setConstructInject('$config') ->exportTo(dirname(__FILE__) . '/Entity') ->run();