Download the PHP package delagics/yii2-app-another without Composer
On this page you can find all versions of the php package delagics/yii2-app-another. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download delagics/yii2-app-another
More information about delagics/yii2-app-another
Files in delagics/yii2-app-another
Package yii2-app-another
Short Description Yii 2 Another Project Template
License BSD-3-Clause
Homepage http://www.delagics.com/
Informations about the package yii2-app-another
Yii 2 Another Project Template
Yii 2 Another Project Template is a skeleton Yii 2 application best for developing complex Web applications with multiple tiers.
The template includes three tiers: front, back, 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.
What's inside:
- Improved project structure (see Directory structure);
- Language management through URLs with help of codemix/yii2-localeurls;
- Flexible user registration and authentication module (dektrium/yii2-user);
- RBAC management module (dektrium/yii2-rbac);
yii init
console command which simplifies project preparation;- PHP dotenv support, for easier project configuration, with Laravel like environment variable getter:
env('YII_ENV', 'dev')
;
Note: tests are currently not included.
Requirements
The minimum requirement by this project template is that your Web server supports PHP 5.4.0. Recommended is PHP 7.
Installation
Install using composer
If you do not have Composer, follow the instructions in the Installing Yii section of the definitive guide to install it.
With Composer installed, you can then install the application using the following commands:
composer global require "fxp/composer-asset-plugin:~1.2"
composer create-project --prefer-dist delagics/yii2-app-another another.dev
The first command installs the composer asset plugin
which allows managing bower and npm package dependencies through Composer. You only need to run this command
once for all. The second command installs the another application in a directory named another.dev
.
You can choose a different directory name if you want.
Then follow the instructions given in the Preparing application section.
Install with git
Clone repository as a web root.
Directory named
another.dev
is your Web root.
Then install the composer asset plugin,
go to the web root folder in a console terminal and run composer install
:
Then follow the instructions given in the Preparing application section.
Preparing application
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.
-
Create a new database.
- Open a console terminal in the root directory of your project and execute the
php yii init/environment && php yii init/initialize
command, and follow the steps of the script.
When switching to production environment, execute php yii init/env
and choose PROD
environment.
-
Set document roots of your web server:
- for
/path/to/another.dev/public/
and using the URLhttp://another.dev/
For nginx it could be the following:
- for
-
Change the hosts file to point the domain to your server.
- Windows:
c:\Windows\System32\Drivers\etc\hosts
- Linux:
/etc/hosts
Add the following lines:
- Windows:
To login into the application, use your username and password created when running php yii init/up
command, or sing up with new credentials.
Generating apps translations
Directory structure
Made with :heart: by @delagics
All versions of yii2-app-another with dependencies
yiisoft/yii2 Version ~2.0
yiisoft/yii2-bootstrap Version *
yiisoft/yii2-swiftmailer Version *
codemix/yii2-localeurls Version ~1.4
dektrium/yii2-user Version 0.9.*@dev
dektrium/yii2-rbac Version dev-master
vlucas/phpdotenv Version ~2.2