This Yii Framework package adds console into the application.
The binary of the package is available as vendor/bin/yii <command>
.
To start working with the package you must do one of these:
composer require yiisoft/di
- Manually create a
console.container
option inparams
(see Composer config plugin to get more info) - Use your own binary file instead of
vendor/bin/yii
Since the package is based on Symfony Console component,
refer to its documentation for details on how to use the binary and create your own commands.