2021-11-01 751次浏览

First release of Yii Console package was tagged. It provides a console that could be added to an application.

The package uses Symfony Console under the hood and adds:

  • serve command that starts built-in PHP server.
  • Application events ApplicationStartup and ApplicationShutdown .
  • Friendly exceptions support.
  • namespace/command command naming style.
  • Ability to add commands via Yii config and lazy command loading from a PSR-11 compatible container.
  • Error logging.
  • A set of pre-defined exit codes.

The code has high tests coverage, is 100% typed and checked statically with Psalm.