robertbakker / php-code-generator
关于此包的最新版本(dev-master)没有提供许可证信息。
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: 2024-09-20 21:58:44 UTC
README
通过在命令行中回答简单的问题来生成常用的代码。目标是拥有一个理解您项目的智能代码生成器。
这是非常早期的工作,请不要使用。
说明
composer require --dev robertbakker/php-code-generator
在项目根目录下创建一个包含值的.env.local文件
CODE_GENERATOR_NAMESPACE=Your\Name\Space
使用方法
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