It's ready to use Yii2 playground that can be handy for Yii2 contributors.
Software | Version |
---|---|
PHP | 7.3 |
MySQL | 5.7 |
PostgreSQL | 9.5 |
SQLite | 2.8 and 3.11 |
Also the box contains:
- yii2-basic-app
- Nginx, php-fpm / cli
- Composer
- xDebug
- htop, mc (Midnight Commander)
-
Install VirtualBox
-
Install Vagrant
-
Do the first and second steps according to the Yii2 contributor guide
-
Create GitHub personal API token
-
Prepare project:
git clone https://github.com/rugabarbo/yii2-contributor-vagrant.git cd yii2-contributor-vagrant/vagrant/config cp vagrant-local.example.yml vagrant-local.yml
-
Place your GitHub personal API token to
vagrant-local.yml
-
Place path to your local yii2 repository to
vagrant-local.yml
(by default it's../yii2
) -
Change directory to project root:
cd yii2-contributor-vagrant
-
Run command:
vagrant up
That's all. You just need to wait for completion! After that you can access basic app (linked with Yii2 playground) locally by URLs: http://l.y2cv-basic-app.test
-
Install VirtualBox
-
Install Vagrant
-
Reboot
-
Do the first and second steps according to the Yii2 contributor guide
-
Create GitHub personal API token
-
Prepare project:
- download repo rugabarbo/yii2-contributor-vagrant
- unzip it
- go into directory
yii2-contributor-vagrant-master/vagrant/config
- copy
vagrant-local.example.yml
tovagrant-local.yml
-
Place your GitHub personal API token to
vagrant-local.yml
-
Place path to your local yii2 repository to
vagrant-local.yml
(by default it's../yii2
) -
Open terminal (
cmd.exe
), change directory to project root and run command:vagrant up
(You can read here how to change directories in command prompt)
That's all. You just need to wait for completion! After that you can access basic app (linked with Yii2 playground) locally by URLs: http://l.y2cv-basic-app.test