The purpose of this project is to provide an advanced Yii2 template.
Yii2 enhanced provides an easily set uppable and configurable Yii2 environment with Vagrant, with a preconfigured dev server for forntend and backend.
-
- Used for setting up the development environment
-
- Robust PHP framework
- Guide
- The project uses Yii2 advanced template
project
| LICENSE.md
| README.md
| Vagrantfile // Used for an easy development environment setup
└───backend
| └─── controllers
| └─── models
| └───views
| └───web
└───common
| └───config // Database configuration here
| └───models // Contains all database models
└───console
| └───controllers
| └───dummy-data // Use for an easy database test data fillup
| └───migrations // Contains all necessary migrations
└───frontend
| └───controllers
| └───models
| └───views
| └───web
└───vagrant
| └───config // Contains the vagrant configurations files
| └───provision
- Install VirtualBox
- Install Vagrant
- Create a GitHub personal API token
- Clone repository:
git clone https://github.com/grabovszky/yii2-enhanced.git
- Configure
vagrant-local.yml
with your GitHub API token:
cd /path/to/application/vagrant/config
cp vagrant-local.example.yml vagrant-local.yml
- Execute init and select development environment:
cd cd /path/to/yii-application/
./init
- Install vagrant plugins and run vagrant
cd /path/to/yii-application/
vagrant plugin install vagrant-hostmanager
vagrant plugin install vagrant-vbguest
vagrant up
- You are all set, you can view your application at ticketing-system.test