This package provides a consistent set of Composer scripts for local validation.
Tool references:
- Codeception for unit tests.
- Composer Require Checker for dependency definition checks.
- Easy Coding Standard (ECS) for coding standards.
- PHPStan for static analysis.
- Rector for automated refactoring.
Run Rector to apply automated code refactoring.
composer run rectorRun Easy Coding Standard (ECS) and apply fixes.
composer run ecsVerify that runtime dependencies are correctly declared in composer.json.
composer run check-dependenciesRun static analysis.
composer run staticRun the full test suite.
composer run testsComposer scripts support forwarding additional arguments using --.
Example: run a specific Codeception test or filter by name.
composer run tests -- --filter="MySpecificTest"Example: run PHPStan with a different memory limit:
composer run static -- --memory-limit=512M