Skip to content

robertbakker/php-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Code generator for PHP 8+

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

About

Aims to make my life easier by generating common PHP code from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published