If your contribution requires significant or breaking changes, or if you plan to propose a major new feature, we recommend you to create an issue on the GitHub with a brief proposal and discuss it with us first.
For smaller contributions just use this workflow:
- Fork the project.
- Add your features and or bug fixes.
- Add tests. Tests are important for us.
- Check your changes using
composer check-all - Send a pull request
git clone https://github.com/webonyx/graphql-php.git
cd graphql-php
composer install./vendor/bin/phpunitSome tests have annotation @see it('<description>'). It is used for reference to same tests in graphql-js implementation with the same description.
Coding standard of this project is based on Doctrine CS. To run the inspection:
./vendor/bin/phpcsAuto-fixing:
./vendor/bin/phpcbfBased on PHPStan
./vendor/bin/phpstan analyse --ansi --memory-limit 256MBenchmarks are run via phpbench:
./vendor/bin/phpbench run .