Contributing
Guidelines
- Guzzle utilizes PSR-1, PSR-2, PSR-4, and PSR-7.
- Guzzle is meant to be lean and fast with very few dependencies. This means that not every feature request will be accepted.
- Guzzle has a minimum PHP version requirement of PHP 7.2. Pull requests must not require a PHP version greater than PHP 7.2 unless the feature is only utilized conditionally and the file can be parsed by PHP 7.2.
- All pull requests must include unit tests to ensure the change works as expected and to prevent regressions.
Running the tests
In order to contribute, you’ll need to checkout the source from GitHub and install Guzzle’s dependencies using Composer:
git clone https://github.com/guzzle/guzzle.git
cd guzzle && composer install
Guzzle is unit tested with PHPUnit. Run the tests using the Makefile:
make test
Note
You’ll need to install node.js v8 or newer in order to perform integration tests on Guzzle’s HTTP handlers.