This package provides a consistent set of Composer scripts for local validation.
Tool references:
- PHPCodeSniffer for code style checks.
- PHPStan for static analysis.
- PHPUnit for unit tests.
Run code style checks.
composer csFix code style issues.
composer cs-fixRun 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