Download the PHP package yiiman/yii2-app-console without Composer
On this page you can find all versions of the php package yiiman/yii2-app-console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiiman/yii2-app-console
More information about yiiman/yii2-app-console
Files in yiiman/yii2-app-console
Package yii2-app-console
Short Description Simple Yii 2 Console Project Template
License BSD-3-Clause
Homepage https://github.com/adlandh/yii2-app-console
Informations about the package yii2-app-console
Simple Yii 2 Console Project Template
Simple Yii 2 Console Project Template is a skeleton Yii 2 application best for rapidly creating console applications.
DIRECTORY STRUCTURE
commands/ contains console commands (controllers)
config/ contains application configurations
mail/ contains view files for e-mails
models/ contains model classes
runtime/ contains files generated during runtime
vendor/ contains dependent 3rd-party packages
REQUIREMENTS
The minimum requirement by this project template that your Web server supports PHP 7.4.
INSTALLATION
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following command:
php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"
php composer.phar create-project --prefer-dist --stability=dev yiiman/yii2-app-console console
CONFIGURATION
Config DataBase
Change .env-example
name to .env
Edit the file .env
with real data
Use commands
Type php yii
in console to see commands
NOTE:
- Yii won't create the database for you, this has to be done manually before you can access it.
Learning and usage
Lesson 1
Lesson 2
Create first custom command on console: