Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drago-ex/generator
:zap: Generating entities and form data. (@nette)
https://github.com/drago-ex/generator
console entity generator nette
Last synced: about 2 months ago
JSON representation
:zap: Generating entities and form data. (@nette)
- Host: GitHub
- URL: https://github.com/drago-ex/generator
- Owner: drago-ex
- License: mit
- Created: 2019-06-05T08:11:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-24T08:05:21.000Z (6 months ago)
- Last Synced: 2024-11-13T14:26:16.874Z (about 2 months ago)
- Topics: console, entity, generator, nette
- Language: PHP
- Homepage:
- Size: 371 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
## Drago Generator
Generating entities and form data.
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/drago-ex/generator/master/license.md)
[![PHP version](https://badge.fury.io/ph/drago-ex%2Fgenerator.svg)](https://badge.fury.io/ph/drago-ex%2Fgenerator)
[![Tests](https://github.com/drago-ex/generator/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/generator/actions/workflows/tests.yml)
[![Coding Style](https://github.com/drago-ex/generator/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/generator/actions/workflows/coding-style.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/drago-ex/generator/badge)](https://www.codefactor.io/repository/github/drago-ex/generator)
[![Coverage Status](https://coveralls.io/repos/github/drago-ex/generator/badge.svg?branch=master)](https://coveralls.io/github/drago-ex/generator?branch=master)## Requirements
- PHP 8.1 or higher
- composer## Installation
```
composer require drago-ex/generator
```## Extension registration
```neon
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](https://github.com/drago-ex/generator-cli)