eapanel / yii2-webapp-start
Yii 2 web application start template
Requires
- php: >=5.4.0
- bower-asset/admin-lte: ~2.0
- dektrium/yii2-rbac: @stable
- dektrium/yii2-user: @stable
- eapanel/yii2-publications: *
- robote13/yii2-pages: dev-master
- yiisoft/yii2: ^2.0.2
- yiisoft/yii2-bootstrap: *
- yiisoft/yii2-swiftmailer: *
Requires (Dev)
- robote13/yii2-advanced-gii: dev-master
- yiisoft/yii2-codeception: *
- yiisoft/yii2-debug: *
- yiisoft/yii2-faker: *
- yiisoft/yii2-gii: *
This package is auto-updated.
Last update: 2024-10-28 03:02:20 UTC
README
Yii 2 Web Application Start Template is a skeleton Yii 2 application best for rapidly creating small projects.
DIRECTORY STRUCTURE
commands/ contains console commands (controllers)
config/ contains application configurations
mail/ contains view files for e-mails
messages/ contains common translation files
migrations/ contains migrations classes
modules/
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
themes/ содержит темы оформления
vendor/ contains dependent 3rd-party packages
web/ contains the entry script and Web resources
REQUIREMENTS
The minimum requirement by this application 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 application template using the following command:
php composer.phar global require "fxp/composer-asset-plugin:~1.1.1"
php composer.phar create-project --prefer-dist --stability=dev eapanel/yii2-webapp-start new_app
Now you should be able to access the application through the following URL, assuming new_app
is the directory
directly under the Web root.
http://localhost/new_app/web/
CONFIGURATION
Database
Edit the file config/common.php
with real data.
NOTE: Yii won't create the database for you, this has to be done manually before you can access it.
Also check and edit the other files in the config/
directory to customize your application.
Migrations
yii migrate --migrationPath=@yii/rbac/migrations
yii migrate --migrationPath=@dektrium/user/migrations
yii migrate