This package is meant to store all the linting rules for PHP projects at Programic. It contains the following linting tools at the moment:
| Laravel Version | Minimum PHP Version |
|---|---|
| 12.x | 8.2 - 8.4 |
| 11.x | 8.2 - 8.4 |
composer require --dev programic/php-linting-rulesvendor/bin/programic-lint-setupThis command will:
- Setup the scripts to the consuming project it's
composer.json - Brings the config files to the workspace root, if not exists. This is required for the package to work properly.
Use
--forceto overwrite configuration files.
After installing running the setup command, you can run the following commands to check your code:
composer lint
composer lint:tlint
composer lint:phpmd
composer lint:phpstan
composer lint:ecs
composer lint:fixSome tools have integrations to work with your editor. You can find the instructions for each tool below: