plathir / my-yii-adv
Yii 2 Advanced Application Template
Requires
- php: >=5.4.0
- 2amigos/yii2-disqus-widget: ~1.0
- abhi1693/yii2-system-info: @dev
- codemix/yii2-localeurls: *
- dmstr/yii2-adminlte-asset: 2.6.0
- fxp/composer-asset-plugin: ~1.2.0
- iutbay/yii2-kcfinder: dev-master
- kartik-v/yii2-ipinfo: *
- kartik-v/yii2-sortable: *
- kartik-v/yii2-sortable-input: *
- kop/yii2-scroll-pager: dev-master
- lav45/yii2-aceeditor: 1.2.*
- mihaildev/yii2-ckeditor: 1.0.1
- mihaildev/yii2-elfinder: *
- plathir/yii2-smart-apps: @dev
- plathir/yii2-smart-blog: @dev
- plathir/yii2-smart-log: @dev
- plathir/yii2-smart-settings: @dev
- plathir/yii2-smart-templates: @dev
- plathir/yii2-smart-user: @dev
- plathir/yii2-smart-widgets: @dev
- vintage/yii2-search: *
- yii2mod/yii2-markdown: 1.1
- yiisoft/yii2: ~2.0.15.1
- yiisoft/yii2-bootstrap: ~2.0.8
- yiisoft/yii2-jui: ^2.0
- yiisoft/yii2-swiftmailer: ~2.0.0 || ~2.1.0
- zhuravljov/yii2-logreader: 1.1.3
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/verify: ~0.3.1
- yiisoft/yii2-apidoc: ~2.1.0
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
This package is auto-updated.
Last update: 2024-12-22 02:02:19 UTC
README
Yii 2 Advanced Application Template 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. It supports deploying the application in different environments.
DIRECTORY STRUCTURE
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains application assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains application assets such as JavaScript and CSS
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
views/ contains view files for the Web application
web/ contains the entry script and Web resources
widgets/ contains frontend widgets
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
tests contains various tests for the advanced application
codeception/ contains tests developed with Codeception PHP Testing Framework
REQUIREMENTS
The minimum requirement by this application template that your Web server supports PHP 5.4.0.
INSTALLATION
Install from an Archive File
Extract the archive file downloaded from yiiframework.com to
a directory named advanced
that is directly under the Web root.
Then follow the instructions given in "GETTING STARTED".
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install the application using the following command:
php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
php composer.phar create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced advanced
GETTING STARTED
After you install the application, you have to conduct the following steps to initialize the installed application. You only need to do these once for all.
- Run command
init
to initialize the application with a specific environment. - Create a new database and adjust the
components['db']
configuration incommon/config/main-local.php
accordingly. - Apply migrations with console command
yii migrate
. This will create tables needed for the application to work. - Set document roots of your Web server:
- for frontend
/path/to/yii-application/frontend/web/
and using the URLhttp://frontend/
- for backend
/path/to/yii-application/backend/web/
and using the URLhttp://backend/
To login into the application, you need to first sign up, with any of your email address, username and password. Then, you can login into the application with same email address and password at any time.