- 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:
composer test
Pull requests with new features needs to be created against master branch.
If new feature require BC Break please note that in your PR comment, it will added in next major version. New features that does not have any BC Breaks are going to be added in next minor version.
In order to fix codding standards please exeecute:
composer cs:php:fix
- 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