kapcus / classgenerator
Class Generator of table classes by database structure
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kapcus/classgenerator
Requires
- php: >=5.6
- dibi/dibi: ^3.1
- nette/di: ^2.3
- symfony/console: ^2.8
This package is not auto-updated.
Last update: 2025-10-19 09:37:26 UTC
README
Simple tool for generating classes representing tables and views in given schema.
Currently supported databases:
ORACLE
Installation
1] Install ClassGenerator with all necessary dependencies with
composer require kapcus/classgenerator
2] Move config.local.neon.example into classgenerator/config.local.neon and setup classgenerator.database section, output directory and namespaces.
3] run this to verify if ClassGenerator is properly installed and configured
php bin/console.php classgenerator:check
Usage
php bin/console.php classgenerator:generate
This command will generate all classes into outputDirectory with proper classNamespace and datatypeNamespace.
========================================
TODO
- remove COLUMN_EXCEPTIONS from Manager class
- remove $typeMapping from Manager class
- resolve abstract Table
- resolve DataTypes
- introduce kapcus/core and remove some classes