adlandh / yii2-app-console
Simple Yii 2 Console Project Template
Installs: 79
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 1
Open Issues: 0
Type:project
pkg:composer/adlandh/yii2-app-console
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0.5
- yiisoft/yii2-swiftmailer: ~2.0.0
Requires (Dev)
- yiisoft/yii2-gii: ~2.0.0
This package is not auto-updated.
Last update: 2021-08-01 22:03:21 UTC
README
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 5.4.0.
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 adlandh/yii2-app-console console
CONFIGURATION
Database
Edit the file config/db.php with real data, for example:
return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=yii2basic', 'username' => 'root', 'password' => '1234', 'charset' => 'utf8', ];
NOTES:
- Yii won't create the database for you, this has to be done manually before you can access it.
- Check and edit the other files in the config/directory to customize your application as required.