https://github.com/drago-ex/generator
:zap: A lightweight CLI tool for generating PHP entity and data class files from your database schema.
https://github.com/drago-ex/generator
console entity generator nette
Last synced: 4 months ago
JSON representation
:zap: A lightweight CLI tool for generating PHP entity and data class files from your database schema.
- Host: GitHub
- URL: https://github.com/drago-ex/generator
- Owner: drago-ex
- License: mit
- Created: 2019-06-05T08:11:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-12-30T09:01:50.000Z (6 months ago)
- Last Synced: 2026-01-01T15:58:08.700Z (6 months ago)
- Topics: console, entity, generator, nette
- Language: PHP
- Homepage:
- Size: 444 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
## 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.
[](https://raw.githubusercontent.com/drago-ex/generator/master/license.md)
[](https://badge.fury.io/ph/drago-ex%2Fgenerator)
[](https://github.com/drago-ex/generator/actions/workflows/tests.yml)
[](https://github.com/drago-ex/generator/actions/workflows/coding-style.yml)
[](https://www.codefactor.io/repository/github/drago-ex/generator)
[](https://coveralls.io/github/drago-ex/generator?branch=master)
## Requirements
- PHP 8.3 or higher
- composer
## Installation
```
composer require drago-ex/generator --dev
```
## 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
| ---------------------- | -----------------------------------------------------|
| `app:entity` | Generates all entities. |
| `app:entity table` | Generates one entity according to the table name. |
| `app:dataClass` | Generates all form data. |
| `app:dataClass table` | Generates one form data according to the table name. |
## Prepared package for generator
[https://github.com/drago-ex/generator-cli](https://github.com/drago-ex/generator-cli)