hamcrest-php is an open source, community-driven project. If you'd like to contribute, feel free to do this, but remember to follow these few simple rules:
Feel free to ask any questions and share your experiences in the Issue tracking system and help to improve the documentation.
- A reproducible example is required for every bug report, otherwise it will most probably be closed without warning.
- If you are going to make a big, substantial change, let's discuss it first.
- Create your feature addition or a bug fix branch based on
master
branch in your repository's fork. - Make necessary changes, but don't mix code reformatting with code changes on topic.
- Add tests for those changes (please look into
tests/
folder for some examples). This is important so we don't break it in a future version unintentionally. - Check your code using "Coding Standard" (see below).
- Commit your code.
- Squash your commits by topic to preserve a clean and readable log.
- Create Pull Request.
- Using
git clone https://github.com/hamcrest/hamcrest-php
to clone this repository. - Using the
composer update
to update the dependencies to support your development environment. - Using
vendor/bin/phpunit -c tests/phpunit.xml.dist
command to do unit test works.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT file.