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.
Run Easy Coding Standard (ECS) and apply fixes.
composer run ecsThis repository ships shared configuration files under config/ for reuse.
Consumer repositories should define their own wrapper ecs.php and set project paths there.
Verify that runtime dependencies are correctly declared in composer.json.
composer run check-dependenciesRun mutation testing.
composer run mutationRun mutation testing with static analysis enabled.
composer run mutation-staticRun static analysis.
composer run staticRun the full test suite.
composer run testsComposer scripts support forwarding additional arguments using --.
Example: run a specific PHPUnit test or filter by name.
composer run tests -- --filter SvgTestExample: run PHPStan with a different memory limit:
composer run static -- --memory-limit=512M