2017 © Pedro Peláez
 

project yii2-standard

Yii2 template focused on serving RESTful API, with some cool extra features

image

bytehunter/yii2-standard

Yii2 template focused on serving RESTful API, with some cool extra features

  • Saturday, July 1, 2017
  • by ByteHunter
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 100 % Grown

The README.md

Yii 2 RESTful Project Template

This is a variation of Yii 2 Advanced Project Template, which is focused on deployment of RESTful API services., (*1)

This template has four tiers: frontend, panel (administration frontend), console and api., (*2)

The template is designed to work in a team development environment. It supports deploying the application in different environments., (*3)

DIRECTORY STRUCTURE

api
    common/              contains common
    config/              contains api configurations
    modules/             contains api versions separated by modules
        v1/              contains a major api version
            controllers/ contains version specific api controllers
            models/      contains version specific api models
    runtime/             contains files generated during runtime
    web/                 contains the entry script
common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
    tests/               contains tests for common classes    
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
panel
    assets/              contains application assets such as JavaScript and CSS
    config/              contains panel configurations
    controllers/         contains Web controller classes
    models/              contains panel-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains tests for panel application    
    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
    tests/               contains tests for frontend application
    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

The Versions

01/07 2017