All Projects → yii2tech → project-template

yii2tech / project-template

Licence: other
Yii2 Project Template

Programming Languages

PHP
23972 projects - #3 most used programming language
CSS
56736 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to project-template

Yii2 App Advanced
Yii 2.0 Advanced Application Template
Stars: ✭ 1,569 (+2860.38%)
Mutual labels:  yii2, yii, project-template
Yii2 App Basic
Yii 2.0 Basic Application Template
Stars: ✭ 548 (+933.96%)
Mutual labels:  yii2, yii, project-template
yii2-faker
Yii 2 Faker extension
Stars: ✭ 99 (+86.79%)
Mutual labels:  yii2, yii
Iisns
sns 开放社区
Stars: ✭ 217 (+309.43%)
Mutual labels:  yii2, yii
yii2-admin-theme
基于Yii2+layui的后台框架模板,实现了完善的RBAC权限控制
Stars: ✭ 87 (+64.15%)
Mutual labels:  yii2, yii
slides
Alexander Makarov conference slides
Stars: ✭ 26 (-50.94%)
Mutual labels:  yii2, yii
Yii2 Bootstrap4
Yii 2 Bootstrap 4 Extension
Stars: ✭ 204 (+284.91%)
Mutual labels:  yii2, yii
install
basic script for project installation
Stars: ✭ 17 (-67.92%)
Mutual labels:  yii2, yii
Yii2 Bootstrap
Yii 2 Bootstrap 3 Extension
Stars: ✭ 177 (+233.96%)
Mutual labels:  yii2, yii
yii2-formbuilder
A drag and drop form builder with jQuery for Yii2
Stars: ✭ 33 (-37.74%)
Mutual labels:  yii2, yii
content
Content management system for Yii2
Stars: ✭ 54 (+1.89%)
Mutual labels:  yii2, yii
yii2-notifications
This Yii2 extension provides support for sending notifications across a variety of delivery channels, including mail, SMS, Slack, Telegram etc.
Stars: ✭ 62 (+16.98%)
Mutual labels:  yii2, yii
Ar Softdelete
Soft delete behavior for ActiveRecord
Stars: ✭ 188 (+254.72%)
Mutual labels:  yii2, yii
Yii2 Gii
Yii 2 Gii Extension
Stars: ✭ 183 (+245.28%)
Mutual labels:  yii2, yii
Yii2
Yii 2: The Fast, Secure and Professional PHP Framework
Stars: ✭ 13,852 (+26035.85%)
Mutual labels:  yii2, yii
Yii2 Debug
Debug Extension for Yii 2
Stars: ✭ 179 (+237.74%)
Mutual labels:  yii2, yii
Yii2 Apidoc
Yii 2 apidoc extension.
Stars: ✭ 236 (+345.28%)
Mutual labels:  yii2, yii
behavior-trait
Allows handling events via inline declared methods, which can be added by traits
Stars: ✭ 18 (-66.04%)
Mutual labels:  yii2, yii
Crontab
Yii2 extension for crontab support
Stars: ✭ 170 (+220.75%)
Mutual labels:  yii2, yii
Yii2 Sphinx
Yii 2 Sphinx extension.
Stars: ✭ 172 (+224.53%)
Mutual labels:  yii2, yii

Yii 2 Project Template


This project is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers.

The template includes three tiers: front end, back end, and console, each of which is a separate Yii application.

The template is designed to work in a team development environment.

Latest Stable Version Total Downloads Build Status

REQUIREMENTS

Requirements check script:

php requirements.php

INSTALLATION

  1. Clone the repository into the project destination directory.
  2. Switch the project branch to the needed one: 'master', 'stage', 'live' etc.
  3. Run the installation script using following command:
php install.php init/all

Project should be deployed beyond web accessible folder. Actual web root should be created as symlink to the 'web' folder:

ln -s /path/to/project/web /var/www/html/project

ASSET COMPRESSION

For assets (CSS and JavaScript) compression use following command:

cd /path/to/project/root
php yii asset config/frontend-asset-compress.php config/frontend-assets.php

See config/frontend-asset-compress.php file for more details.

The 'backend' assets compression is performed as separated command:

cd /path/to/project/root
php yii asset config/backend-asset-compress.php config/backend-assets.php

See config/backend-asset-compress.php file for more details.

SITEMAP GENERATION

Sitemap is generated by app\controllers\console\SitemapController::actionGenerate() method. Make sure all pages, which should appear at sitemap are processed in this method. For sitemap generation use following command:

cd /path/to/project/root
php yii sitemap/generate

SELF-UPDATE

After successful installation 'stage' or 'production' server can be updated using 'self-update' command.

In order to perform an update, run the following commands:

cd /path/to/project/root
php yii self-update config/self-update.php

GII

Admin section generation:

php yii gii/adminCrud --modelClass="app\models\db\{NAME}" --controllerClass="app\controllers\backend\{NAME}Controller" --searchModelClass="app\models\backend\{NAME}Search" --viewPath="@app/views/backend/{NAME}" --enableI18N=1

Admin section with context generation:

php yii gii/adminCrud --modelClass="app\models\db\{NAME}" --controllerClass="app\controllers\backend\{NAME}Controller" --searchModelClass="app\models\backend\{NAME}Search" --viewPath="@app/views/backend/{NAME}" --contextClass="app\models\db\{CONTEXT}" --enableI18N=1

I18N

Translation messages generation:

php yii message messages/config.php

TESTING

This project supports testing via PHPUnit as well as via Codeception

Regular PHPUnit tests are located under 'tests\unit' directory. In case you have PHPUnit installed you can run them using phpunit command from the project root.

Please refer to Codeception Testing manual for the details about Codeception tests setup and running.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].