Nette Coding Standard Vagrant Project
This project allows you to run a Nette Coding Standard check&fix in environments with PHP <7.1.
Usage
Install
Install Vagrant and Virtualbox.
Synchronize project folder
Add project folder, you want to check, to Vagrantfile
:
Vagrant.configure("2") do |config|
...
config.vm.synced_folder "path/to/project-to-check", "/vagrant_data/project-to-check"
...
end
Note: You can add multiple project folders
Style check & fix
Now run Vagrant and connect via SSH.
$ vagrant up
$ vagrant ssh
Once you are connected via SSH move to /vagrant
folder and run check&fix.
$ ./ecs check /vagrant_data/project-to-check/app/ --config vendor/nette/coding-standard/coding-standard-php70.neon --fix
For more details read Nette Coding Standard documentation.