robertbakker / php-code-generator
There is no license information available for the latest version (dev-master) of this package.
dev-master
2021-06-20 15:01 UTC
Requires
- php: >=8.0
- nette/php-generator: ^3.5
- psr/log: ^1.1
- symfony/console: ^5.0
- symfony/dotenv: ^5.0
- symfony/var-dumper: ^5.0
This package is auto-updated.
Last update: 2025-04-20 23:20:19 UTC
README
Generate often used code by answering simple questions on the command line. The goal is to have an intelligent code generator which understands your project.
This is very early work, do not use.
Instruction
composer require --dev robertbakker/php-code-generator
Make a .env.local
file in the root of the project containing the value:
CODE_GENERATOR_NAMESPACE=Your\Name\Space
Usage
Usage:
./vendor/bin/pcg [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Display help for a command
list List commands
ddd
ddd:repository Generate a repository interface for a Domain Driven Design (DDD) style project
ddd:service Generate a service class for a Domain Driven Design (DDD) style project