This lint tool use your PHP binaries to lint your sources files.
The first step to use it is to setup your environment by launching the install
command. During the installation, it'll scan your computer searching for PHP binaries and save paths in your configuration.
This tool mainly supports Homebrew, other tools may or may not be well supported.
Install composer dependencies with composer install
and run ./lint-tools install
.
To update your configuration, run ./lint-tools install --force
.
To list your PHP instances cached during your last installation, run ./lint-tools install --list
After the install, you could run the lint command ./lint-tools lint [-m <min>] [--exclude] [--colors] [--full] [--no-local] <folder>
where folder is the directory containing PHP sources to lint.
The min option can be used to define the minimal PHP version to lint with. Semantic Versioning format is used.