Thanks for showing interest in contributing!
The following is a set of guidelines for contributing to the BigCommerce PHP API client. These are just guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
By contributing to the BigCommerce PHP API client, you agree that your contributions will be licensed under its MIT license.
Unsure where to begin contributing to the API client? Check our forums, our stackoverflow tag, and the reported issues.
You can run tests using the following command: ./vendor/bin/phpunit
To check your code with phpstan, run ./vendor/bin/phpstan
.
Remove errors from baseline: While changing the code you might see the following error from the PhpStan
Ignored error pattern #.... was not matched in reported errors.
This means that the error is no longer present in the code, so you can remove it from the baseline file.
To do so, run ./vendor/bin/phpstan --generate-baseline=.phpstan/baseline.neon
and commit the changes.
- Fill in the required template
- Include screenshots and animated GIFs in your pull request whenever possible.
- End files with a newline.
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference pull requests and external links liberally