Search by

drago-ex / generator-cli

accgit

Basic configuration for Drago Generator

Package info

github.com/drago-ex/generator-cli

Type:project

pkg:composer/drago-ex/generator-cli

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v2.3.0 2026-10-31 06:37 UTC

This package is auto-updated.

Last update: 2026-10-31 06:58:20 UTC


README

Ready-to-use Drago Generator project with PHP and database Docker services.

PHP version GitHub version Coding Style

Requirements

  • PHP >= 8.3, < 9
  • Nette Framework
  • Composer
  • Docker and Node.js (npm runs the Docker scripts)

Installation

composer create-project drago-ex/generator-cli

Usage

Start the PHP server and the database (connection in local/db.neon; from the host the database is on port 6033), then create your tables in the database app:

npm run docker:dev

Generate the classes inside the server container, for all tables or for one:

composer generate:entity
composer generate:entity -- users
composer generate:data-class -- users

Entities are written to app/Entity, data classes (form values, *Values) to app/Values. The options are set in config.neon and described in the Drago Generator README.