- Fork the repo
- Clone the repo to local
- Install dependencies:
composer update
(this assumes you have 'composer' aliased to wherever your composer.phar lives) - Run the tests. We only take pull requests with passing tests, and it's great to know that you have a clean slate:
./bin/phpunit
Try use similar coding standards to what you see in the project to keep things clear to the contributors. If you're unsure, it's always a safe bet to fall-back to the PSR standards.
Pull requests with new features needs to be created against master branch.
If new feature require BC Breake please note that in your PR comment, it will added in next major version. New features that does not have any BC Breakes are going to be added in next minor version.
- Check the oldest version that patch/bug fix can be applied.
- Create PR against that version
For example if you are fixing pattern expander that was introduced in version 1.1 make sure that PR with fix is created against version 1.1, not master or 2.0
- Make the changes/additions to the code, committing often and making clear what you've done
- Make sure you write tests for your code, located in the folder structure
tests/Coduo/PHPMatcher/...
- Run your tests (often and while coding):
./bin/phpunit
- Create Pull Request on github to against proper branch