dev-master
9999999-dev https://github.com/m1ke-cerber/yii2-app-miniYii 2 Minimized Project Template
BSD-3-Clause
The Requires
- php >=5.4.0
- yiisoft/yii2 ~2.0.5
framework yii2 application project template mini minimized
Yii 2 Minimized Project Template
Minimized Project Template is a most smaller application template based on a Yii 2 framework., (*1)
As a basis was taken Basic Project Template, but such extensions as gii, debug, bootstrap, faker, swiftmailer and codeception testing environment were excluded from it. This was done in order to give the developer the opportunity to independently build the application with the necessary components and extensions., (*2)
This template can be useful to you when the task is to be solved quickly and efficiently, but using a basic / advanced template for the solution is costly or inappropriate., (*3)
commands/ contains console commands (controllers) config/ contains application configurations controllers/ contains Web controller classes runtime/ contains files generated during runtime vendor/ contains dependent 3rd-party packages views/ contains view files for the Web application and emails web/ contains the entry script and Web resources
The minimum requirement by this project template that your Web server supports PHP 5.4.0., (*4)
If you do not have Composer, you may install it by following the instructions at getcomposer.org., (*5)
You can then install this project template using the following command:, (*6)
php composer.phar global require "fxp/composer-asset-plugin:^1.3.1" php composer.phar create-project --prefer-dist --stability=dev m1ke-cerber/yii2-app-mini path/to/your/project
Now you should be able to access the application through the following URL, assuming your server webroot is pointed to project/web directory., (*7)
http://localhost/
Edit the file config/db.php
with real data, for example:, (*8)
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., (*9)
Yii 2 Minimized Project Template
BSD-3-Clause
framework yii2 application project template mini minimized