powerkernel/yii2-skeleton Yii 2 Skeleton Project Template

frameworkprojecttemplateskeleton

Yii 2 Skeleton

Yii 2 Skeleton is a skeleton (based on Yii 2 App Advanced) 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.

Yii2 App Advanced Documentation is at docs/guide/README.md.

Installing 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 create-project --prefer-dist powerkernel/yii2-skeleton yii-application

or if you want to install packages from source

composer create-project --prefer-source powerkernel/yii2-skeleton yii-application

DIRECTORY STRUCTURE

common
    bootstrap/           contains bootstrap 
    config/              contains shared configurations
    gii/                 contains gii templates
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
    plugins/             contains 3rd plugins used in both backend and frontend
    widgets/             contains widgets 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

FEATURES

Account
    Signup, Login
    Login with Facebook, Google
    CRUD: View, Update, Delete, List
RBAC
    Assign, Revoke, List
I18N
    Message Translation
    User locale selection    

And adding more features...

More comming soon..

INSTALLATION

  1. Run init, update your database information in common\config\mail-local.php
  2. Run php yii migrate or php yii mongodb-migrate --migrationPath=@console/migrations/mongodb
  3. Run php yii setup
  4. Config/Symlink frontend\web & backend\web to your public_html
  5. Go to frontend and sign up for new account, admin role will be auto assigned.
  6. Go to backend and update all settings (reCaptcha, API, SMTP...)
  7. Generate icons from http://realfavicongenerator.net/
  8. Your are ready!

CONFIG

  1. Go to realfavicongenerator for icons creation, then upload them to frontend/web/favicon
  2. Upload favicon.ico to the root of your web site (frontend and backend)
  3. Upload your logos to frontend/web/images (logo.png, banner.svg, logo-mini.svg, logo-lg.svg, logo-1024.png, logo-120.png)
  4. Ignore local composer.json: git update-index --skip-worktree composer.json
  5. Ignore localhost.php (if you have this file, all mails will be sent to a file, delete it when go live): git update-index --skip-worktree common/config/localhost.php
  6. Ignore local site/index: git update-index --skip-worktree frontend/views/site/index.php

symlink public_html help

Linux public_html ln -s ~/domains/domain.com/frontend/web/ ~/domains/domain.com/public_html

Google Login Authorized redirect URIs

https://domain.com/account/login/google https://domain.com/account/auth?authclient=google https://domain.com/backend/account/login/google https://domain.com/backend/account/auth?authclient=google

Google Login Authorized redirect URIs (for localhost)

https://domain.local/account/login/google https://domain.local/account/auth?authclient=google https://domain.local/backend/account/login/google https://domain.local/backend/account/auth?authclient=google

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.14 is the latest of 13 releases



BSD-3-Clause license
Stats
5 github stars & 0 github forks
0 downloads in the last day
4 downloads in the last 30 days
12 total downloads