quartetcom / static-analysis-kit
Strict and modern kit to optimise the codebase defensively.
Package info
github.com/quartetcom/static-analysis-kit
Type:composer-plugin
pkg:composer/quartetcom/static-analysis-kit
v8.3.4
2024-02-25 06:16 UTC
Requires
- php: ^8.3
- composer-plugin-api: *
- php-cs-fixer/shim: ^3.46.0
- phpstan/phpstan: ^1.10.55
- rector/rector: ^1.0.1
- symfony/console: ^5.4|^6|^7
- symfony/process: ^5.4|^6|^7
- symplify/easy-coding-standard: ^12.1.3
Requires (Dev)
- composer/composer: ^2.6
Conflicts
- phpunit/phpunit: <9
This package is auto-updated.
Last update: 2026-06-05 13:12:04 UTC
README
Strict and modern kit to optimise the codebase defensively.
📦 Installation
composer require --dev quartetcom/static-analysis-kit:~8.2
./vendor/bin/static-analysis-kit install
Note
Replace~8.2with the PHP version you want to use. Refer Versioning for details.
The project will be automatically optimised by answering the questions.
🔖 Versioning
Version of this package follows the PHP version that which is supported.
For example, if you want to use in a PHP 8.2 project, use in range of ~8.2.
✅ Development Flow
- Change code
- Run "Reformat Code" (%L) in PhpStorm
- Confirm there are no errors (will be highlighted on the scroll bar)
- Run
composer analyse - Problems about formatting can be resolved by
composer fix - The remaining problems should caused by the code, so fix them manually
(You can run
composer fix:riskyorcomposer fix:rectorto resolve them, but this causes code breaks; be careful of the diff after run) - Commit after confirmed there are no errors by running
composer analyse