https://github.com/php-http/psr7-integration-tests
https://github.com/php-http/psr7-integration-tests
psr-7
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/php-http/psr7-integration-tests
- Owner: php-http
- License: mit
- Created: 2017-02-12T12:39:32.000Z (over 8 years ago)
- Default Branch: 1.x
- Last Pushed: 2025-01-04T09:16:39.000Z (9 months ago)
- Last Synced: 2025-08-23T06:09:32.000Z (about 1 month ago)
- Topics: psr-7
- Language: PHP
- Size: 126 KB
- Stars: 40
- Watchers: 9
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP Message
[](https://packagist.org/packages/php-http/psr7-integration-tests)
**Test PSR7 implementations against the specification.**
## Status
| PSR7 Implementation | Status | Legacy |
|---------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------:|
| Guzzle | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/guzzle.yml) |
| Laminas | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/laminas.yml) | [Legacy](https://github.com/php-http/psr7-integration-tests/actions/workflows/laminas-legacy.yml) (failures expected) |
| Slim | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/slim.yml) |
| Nyholm | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/nyholm.yml) |
| RingCentral | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/ringcentral.yml) |
| HttpSoft | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/httpsoft.yml) |
| Fatfree | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/fatfree.yml) |## Install
To use the integration tests with a PSR-7 implementation, add this package to the dev dependencies:
``` bash
$ composer require --dev php-http/psr7-integration-tests
```Then set up phpunit to run the tests for your implementation.
## Documentation
Please see the [official documentation](http://docs.php-http.org/en/latest).
## Testing
This repository also is set up to test a couple of implementations directly. You need to install dependencies from source for the tests to work:
``` bash
$ composer update --prefer-source
```**Note:** If you already have the sources installed, you need to delete the vendor folder before running the above command.
Run the test suite for one implementation with:
``` bash
$ composer test -- --testsuite
```The names are `Guzzle`, `Laminas`, `Slim`, `Nyholm`, `RingCentral`, `HttpSoft`, `Fatfree`.
It is also possible to exclude tests that require a live internet connection:
``` bash
$ composer test -- --testsuite --exclude-group internet
```## Contributing
Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).
## Security
If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.