Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.03 KB

readme.md

File metadata and controls

45 lines (33 loc) · 2.03 KB

Drago Generator

This tool generates entities and form data for your applications. It is built on PHP 8.3 and provides a simple interface for creating classes and using them in your projects.

License: MIT PHP version Tests Coding Style CodeFactor Coverage Status

Requirements

  • PHP 8.3 or higher
  • composer

Installation

composer require drago-ex/generator

Extension registration

extensions:
	generator: Drago\Generator\DI\GeneratorExtension

Generator settings

All settings of entities and data form can be found in Options.php

https://github.com/drago-ex/generator/blob/master/src/Drago/Generator/Options.php#L19

Console commands

Command Description
make:entity Generates all entities.
make:entity table Generates one entity according to the table name.
make:dataClass Generates all form data.
make:dataClass table Generates one form data according to the table name.

Prepared package for generator

https://github.com/drago-ex/generator-cli