Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Guzzle based request/response object with PSR-17 factory #34

Open
wants to merge 2 commits into
base: v0.4
Choose a base branch
from

Conversation

taavit
Copy link

@taavit taavit commented Oct 16, 2019

Current implementation is based on Guzzle PSR-7 implementation. This might lead to have multiple PSR-7 implementation across project (I'm using zend-diactoros in my project). While this is not a big problem, using one implementation across whole project (including libraries) and single request/response factory should make dependency tree smaller.

@cboden
Copy link
Member

cboden commented May 14, 2020

Awesome, I like it! Could you rebase against master please?

@taavit
Copy link
Author

taavit commented May 14, 2020

Tests failed due to tested php versions. (guzzle requires php ^7.2, nyholm/psr7 ^7.1, diactoros ^7.1)
I could switch to laminas/nyholm factories, so this should pass 7.1 as well.

@cboden
Copy link
Member

cboden commented May 15, 2020

Are there no factory implementations that support older versions?

@taavit
Copy link
Author

taavit commented May 15, 2020

psr/http-factory itself requires php 7.0+. For php 7.0 I found only this: https://packagist.org/packages/php-extended/php-http-message-factory-psr17

@cboden
Copy link
Member

cboden commented May 15, 2020

Ok. We're likely doing one more release then dropping support for PHP5 and lower versions of 7. I'll circle back to this PR shortly.

@cboden cboden added this to the 0.4 milestone Nov 26, 2021
@cboden cboden changed the base branch from master to v0.4 December 9, 2021 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants