Skyii is a pre-configured Yii2 Advanced Template with a lot of features out of the box.
Skyii was developed to minimize the additional efforts in setting up Yii2. It includes all the necessary configurations out of the box.
If you have any suggestions or complaints, feel free to open an issue.
Please see this for more detailed feature list.
The minimum requirement by Skyii is that your web server supports PHP 5.4.0.
Note: We assume that you have basic understanding of Yii2, composer and setting up your development environment either in homestead or in xampp/wamp/lamp/mamp etc.
You can install this template with below command in your terminal:
git clone https://github.com/antick/skyii.git
Extract the archive file downloaded from this repository to your Web root.
After you have downloaded or ran git clone, you have to follow below steps to initialize the installed application.
Update your composer.
composer global require "fxp/composer-asset-plugin:^1.3.0"
composer update
Execute the init command and select dev as environment.
php init
For production, execute init in non-interactive mode.
php init --env=Production --overwrite=All
Execute skyii/install command to setup your database name in application. Make sure the database already exists.
php yii skyii/install
It will also run migrate command with your confirmation as well as setup proper folder paths in htaccess. But just in case
if it does not run the migrations on its own then you will have to run php yii migrate in console.
Navigate to the admin panel and wait for few seconds while all the caches are being generated.
Sign up now to login into the application
For Server configurations please see server_configuration.md
For the list of used plugins in Skyii, please see list of plugins
| Feature | Basic | Advanced | Skyii |
|---|---|---|---|
| Project structure | ✓ | ✓ | ✓ |
| Site controller | ✓ | ✓ | ✓ |
| User login/logout | ✓ | ✓ | ✓ |
| Forms | ✓ | ✓ | ✓ |
| DB connection | ✓ | ✓ | ✓ |
| Console command | ✓ | ✓ | ✓ |
| Asset bundle | ✓ | ✓ | ✓ |
| Codeception tests | ✓ | ✓ | ✓ |
| Twitter Bootstrap | ✓ | ✓ | ✓ |
| Front-end and back-end apps | ✓ | ✓ | |
| Ready to use User model | ✓ | ✓ | |
| User signup and password restore | ✓ | ✓ | |
| Pretty Url | ✓ | ||
| REST API | ✓ | ||
| API versioning ready | ✓ | ||
| XML or JSON response formatting | ✓ | ||
| Custom error handling | ✓ | ||
| User module with RBAC | ✓ | ||
| Admin LTE integration in Backend and Gii | ✓ | ||
| Custom Gii Templates | ✓ |
Pankaj Sanam
Rajat Jain