This package provides a consistent set of Composer scripts for local validation.
Tool references:
- Composer Require Checker for dependency definition checks.
- Easy Coding Standard (ECS) for coding standards.
- Infection for mutation testing.
- PHPStan for static analysis.
- PHPUnit for unit tests.
- Rector for automated refactoring.
Run Rector to apply automated code refactoring.
composer rectorRun Easy Coding Standard (ECS) and apply fixes.
composer ecsVerify that runtime dependencies are correctly declared in composer.json.
composer check-dependenciesRun mutation testing.
composer mutationRun mutation testing with static analysis enabled.
composer mutation-staticRun static analysis.
composer staticRun the full test suite.
composer testsComposer scripts support forwarding additional arguments using --.
Run PHPUnit with code coverage report generation.
composer tests -- --coverage-html code_coverageRun PHPStan with a different memory limit.
composer static -- --memory-limit=512M