Skip to content

grasphp/command

Repository files navigation

grasphp/command

Sophisticated Console Command

Usage

  1. create project: composer create-project grasphp/command <DIR>
  2. cd <DIR>
  3. Edit default command: src/Command/Run.php
  4. Execute: php command or ./command

Create New Command

  1. create new command class at src/Command/
  2. add class to the config/commands.php file