{"repo":"yiisoft/app-console","free":true,"listed":false,"github":"https://github.com/yiisoft/app-console","clone":"git clone https://github.com/yiisoft/app-console.git","description":"Yii3 console application template","language":"PHP","stars":31,"topics":["app","application","console","template","yii3","project-template"],"license":"BSD-3-Clause","category":"saas-starters-boilerplates","readme_excerpt":"Yii Console Application The package is a console only application template that can be used to perform common tasks in a Yii application. If you need classic web or API please start with corresponding templates: - Classic web application template - API application template It is based on Yii console runner that is used in the entry command script, ./yii . You are free to adjust any part of this template including the entry command script to suit your needs. Requirements - PHP 8.1 - 8.5. Creating a project Use Composer to create new project from this template: General usage Console is available as ./yii from the root directory of the application: Help for specific command could be displayed by adding --help to the command itself: Using the command is like the following: Environments Out of the box, three environments are available: - dev — for development. - prod — for production. - test — for running tests. Config files for these are in config/environments . Environment could be chosen by setting YII ENV : Extra debugging To enable validation of container and events, set YII DEBUG environment variable: Creating your own command Commands are placed into src/Command . Let's see how hello command is implemented in src/Command/HelloCommand.php : To register the command, add it to config/commands.php : Info: Yii console is based on Symfony console so for additional usage documentation, please follow Yii console and Symfony console guide. Events The application raises ApplicationSt","default_branch":null,"files":null,"tree":[],"storefront":"/r/yiisoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yiisoft/app-console/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}