File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 22
33Console applications are mainly used to create utility, background processing and maintenance tasks.
44
5- To get support for console application in your project, get ` yiisoft/yii-console ` via composer:
5+ ## Getting started
66
7+ If you're using [ yiisoft/app] ( https://github.com/yiisoft/app ) or
8+ [ yiisoft/app-api] ( https://github.com/yiisoft/app-api ) , console support is already included.
9+ You can access the entry point as:
710
811```
9- composer require yiisoft /yii-console
12+ . /yii
1013```
1114
12- After it's installed, you can access the entry point as
15+ If you want a standalone console-only application, use the
16+ [ yiisoft/app-console] ( https://github.com/yiisoft/app-console ) project template:
1317
18+ ``` sh
19+ composer create-project yiisoft/app-console your-project
1420```
15- ./yii
16- ```
21+
22+ To add console support to an existing project from scratch, refer to the
23+ [ yiisoft/yii-console package documentation] ( https://github.com/yiisoft/yii-console ) .
1724
1825Out of the box only ` serve ` command is available. It's starting PHP built-in web server to serve the application locally.
1926
You can’t perform that action at this time.
0 commit comments