Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 1.47 KB

CONTRIBUTING.md

File metadata and controls

21 lines (11 loc) · 1.47 KB

Contributing

Thank you for your interest in contributing! Before proceeding, please read the Code of Conduct.

Developing

Composer and NPM will both be required to develop & test the library. Once they are configured, run composer install and npm install from the repository root directory to install the required dependencies.

Code is automatically formatted by Prettier. Formatting can be initiated manually with the command composer format. See the Prettier docs to enable file watching & live reformatting.

Static type checking is performed by Psalm. Additional Psalm docblock annotations should be added where necessary to improve type checking. Type analysis & verification can be performed with the command composer analyze.

Unit tests are managed by PHPUnit. Tests can be run with the command composer test.

Submitting Changes

Before submitting changes, please ensure all code formatting passes validation with the command composer format-check, static analysis passes with the command composer analyze, and all tests pass with the command composer test.

To submit changes, please open a pull request.

Thank you for your contribution!