programic / php-linting-rules
Shared linting rules for PHP projects
v1.1-BETA
2025-11-20 14:52 UTC
Requires
- php: ^8.2
- larastan/larastan: ^3.0
- mockery/mockery: ^1.6
- phpmd/phpmd: ^3.x-dev
- phpstan/phpstan-mockery: ^2.0
- slevomat/coding-standard: ^8.0
- squizlabs/php_codesniffer: 3.13.2
- symplify/easy-coding-standard: ^12.5
- tightenco/tlint: ^9.5
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This package is meant to store all the linting rules for PHP projects at Programic. It contains the following linting tools at the moment:
✅ Compatibility
| Laravel Version | Minimum PHP Version |
|---|---|
| 12.x | 8.2 - 8.4 |
| 11.x | 8.2 - 8.4 |
🏗️ Installing
1. Require the composer package
composer require --dev programic/php-linting-rules
2. Run the setup command
vendor/bin/programic-lint-setup
This 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.
👷 Usage
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:fix
Editor Setup
Some tools have integrations to work with your editor. You can find the instructions for each tool below: