php-http / message-factory

Abandoned: Httplug Factory interfaces for PSR-7 HTTP Message
http://php-http.org
MIT License
1.38k stars 10 forks source link

Add PSR-17 compatibility layer #38

Closed sagikazarmark closed 1 year ago

sagikazarmark commented 5 years ago

This PR adds a compatibility layer between our message factories and PSR-17. Once it is in place, we can refactor the discovery layer to check for PSR-17 implementations and use them instead of requiring the php-http/message package.

After that we can deprecate the implementations of our message factories and the interfaces themselves, eventually migrating to PSR-17 interfaces. Maybe we can do it before tagging client-common 2.0?

Todo

silvadanilo commented 5 years ago

Hi, is the merge of this pull request planned?

dbu commented 4 years ago

when this is released, update the changes from https://github.com/php-http/cache-plugin/pull/56

sagikazarmark commented 4 years ago

Sorry, totally forgot about it. Will try to pick this up soon.

Infernal15 commented 1 year ago

Hi, is the merge of this pull request planned?

dbu commented 1 year ago

not sure how useful this is anymore, there are a bunch of factory implementations available. the most popular being guzzlehttp/psr7 and nyholm/psr7, see https://packagist.org/providers/psr/http-factory-implementation for the full list of implementations.

and php-http/discovery has support for the guzzlehttp and nyholm factories.

is there any need to provide a psr 17 implemenation on top of our own factories? /cc @Nyholm

dbu commented 1 year ago

closing this in favor of #42 - we will deprecate this whole repository and point people to the PSR-17 factories.