Internals

This package provides a consistent set of Composer scripts for local validation.

Tool references:

Code style checks (PHPCodeSniffer)

Run code style checks.

composer cs

Fix code style issues.

composer cs-fix

Static analysis (PHPStan)

Run static analysis.

composer static

Unit tests (PHPUnit)

Run the full test suite.

composer tests

Passing extra arguments

Composer scripts support forwarding additional arguments using --.

Run PHPUnit with code coverage report generation.

composer tests -- --coverage-html code_coverage

Run PHPStan with a different memory limit.

composer static -- --memory-limit=512M