This repository holds the necessary data to use the ZooRoyal coding standard. It incorporates
- PHP Code Sniffer and its configuration
- PHP Mess Detector and its configuration
- PHP Copy Paste Detector
- PHP-Parallel-Lint
- ES-LINT and its configuration
- STYLE-LINT and its configuration
Furthermore there are the bash scripts in /src/bin which are meant to be used in the .travis build file. They search your source code for files to check by their static code analysis tool. Information about their usage can be found by calling them with -h option.
To install this package just run
composer require "zooroyal/coding-standard"
Run the command to get usage instructions.
php vendor/bin/coding-standard
For examples just have a look an the .travis.yml