Development Commands

January 21, 2026 ยท View on GitHub

CommandDescription
composer installInstall dependencies
composer testRun all tests
composer lintCheck PSR-12 compliance
composer formatFix coding style automatically
composer analyzeRun static analysis with PHPStan

Testing

  • Unit tests: Located in tests/Unit/
  • Run all tests: composer test

All contributions must include tests that pass.

Code Style

This project follows the PSR-12 coding standard via the Respect Coding Standard. Run the following command before submitting:

composer lint  # Check coding style
composer format # Fix coding style automatically

Static Analysis

This project uses PHPStan for static analysis. Run:

composer analyze  # Run static analysis