kapcus/classgenerator

Class Generator of table classes by database structure

v0.1.3 2018-08-03 00:57 UTC

This package is not auto-updated.

Last update: 2024-04-21 02:28:20 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