Developing code
Learn how to contribute with code patches.
Last updated
Was this helpful?
Learn how to contribute with code patches.
Last updated
Was this helpful?
Create your own git working branch from one of the existing branches 4.x
, 3.x
or 2.x
depending on your PHP version:
Ensure the code is clean, just run the linters:
Make sure you check the .coverage
folder and open the report.
The coverage should be just like you first started (close to 100%).
Baseline re-creation:
If no errors left, then proceed to committing your changes:
If you add new methods or make structural changes to the library then you need to add unit tests otherwise your PR will not be accepted. If you add new regexes make sure you commit the User-Agents in . Now that your changes are done, run the unit tests:
Now go to your repo on GitHub and .