Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 2.22 KB

CONTRIBUTING.md

File metadata and controls

55 lines (35 loc) · 2.22 KB

Contributing to the BigCommerce PHP API Client

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.

Table of Contents

API Documentation

How Can I Contribute?

Styleguides

Your First Code Contribution

Unsure where to begin contributing to the API client? Check our forums, our stackoverflow tag, and the reported issues.

Tests

You can run tests using the following command: ./vendor/bin/phpunit

Code quality - PhpStan

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.

Pull Requests

  • Fill in the required template
  • Include screenshots and animated GIFs in your pull request whenever possible.
  • End files with a newline.

Styleguides

Git Commit Messages

  • 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