You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recommend adding support for psr/http-message v2, which was released in April and requires PHP 7.2+. To ensure compatibility with psr/http-message v2 across all currently supported versions in http (PHP 5.3+), we will need to implement some additional workarounds for older PHP versions. These workarounds are necessary not only for the current v1 of http, but also for the upcoming v3, which will support PHP 7.1+. We will also need to include additional tests to ensure our compatibility with psr/http-message v2.
Additionally we need to remove the dependency for ringcentral/psr7 as discussed in #485, which currently has a dependency on psr/http-message v1. This project has not received updates since 2020, and it is unlikely to receive support for psr/http-message v2 anytime soon. To ensure compatibility with psr/http-message v2, we must first remove ringcentral/psr7.
I'll update this ticket as we make progress 👍
If you need this feature urgently, you can always reach out to us or help us prioritizing by becoming a sponsor and supporting the ReactPHP ecosystem ❤️
Any progress here? Just installed your package, but my application needs pst/http-message v2, so had to do some changes to check if i can use v1, but i can't sadly, all my other packages and libs are already v2..
Reacted by Jonathon Hill, William Eggers, Adrian Günter, Lugosium and Jeremy Angele
I'd really like to bundle this package with the LLPhant (theodo-group/llphant) library for a project I'm working on. Unfortunately, LLPhant mandates psr/http-message v2, as does the Opensearch PHP library (opensearch-project/opensearch-php), so I'm pretty much dead in the water. Is support for psr/http-message v2.0 a long way off?
Reacted by mdissington, Adrian Günter and Lugosium
psr/http-message v2 requires a minimum of either php ^7.2 or ^8.0. This repository currently requires a minimum of at least ^7.1, so updating the minimum version of psr/http-message would require raising the minimum PHP language. If it is fine to do so then the dependency should be able to be updated without any further consideration needed.
I actually don't see a reason why it couldn't just be added to composer.json immediately. Composer will only install the version that's most compatible with whatever version of PHP you have installed. I'll make a PR and cross my fingers it'll be accepted.
I noticed there has been some progress lately. That is great new!
I was wondering whether you are able to grant any insight about when this is expected to get merged.
Since #513 was opened in 2023, how likely is it that v3 (or v4) with the psr/http-message v2 patch ships before 2027? Don't want to pin you down or rush, but some info would help me with making decisions.
Activity
eshimischi commentedon Oct 20, 2024
Any progress here? Just installed your package, but my application needs pst/http-message v2, so had to do some changes to check if i can use v1, but i can't sadly, all my other packages and libs are already v2..
compwright commentedon Dec 3, 2024
williameggers commentedon Feb 7, 2025
williameggers commentedon Feb 8, 2025
I'd really like to bundle this package with the LLPhant (theodo-group/llphant) library for a project I'm working on. Unfortunately, LLPhant mandates psr/http-message v2, as does the Opensearch PHP library (opensearch-project/opensearch-php), so I'm pretty much dead in the water. Is support for psr/http-message v2.0 a long way off?
adrolter commentedon Feb 19, 2025
lugosium commentedon Mar 5, 2025
vivid-lamp commentedon Mar 10, 2025
WyriHaximus commentedon Mar 12, 2025
Yes, but please see
Personal challengesin this post ratchetphp/Ratchet#1054 (comment)zhiyong-ft commentedon Mar 14, 2025
WyriHaximus commentedon Mar 14, 2025
valzargaming commentedon May 1, 2025
psr/http-messagev2 requires a minimum of either php ^7.2 or ^8.0. This repository currently requires a minimum of at least ^7.1, so updating the minimum version of psr/http-message would require raising the minimum PHP language. If it is fine to do so then the dependency should be able to be updated without any further consideration needed.mikespub commentedon May 11, 2025
Could we at least support v2 for react/http 3.x then?
valzargaming commentedon May 17, 2025
I actually don't see a reason why it couldn't just be added to
composer.jsonimmediately. Composer will only install the version that's most compatible with whatever version of PHP you have installed. I'll make a PR and cross my fingers it'll be accepted.Allow psr/http-message ^2.0
15 remaining items
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
mvaessen commentedon Aug 14, 2026
I noticed there has been some progress lately. That is great new!
I was wondering whether you are able to grant any insight about when this is expected to get merged.
Since #513 was opened in 2023, how likely is it that v3 (or v4) with the
psr/http-message v2patch ships before 2027? Don't want to pin you down or rush, but some info would help me with making decisions.[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1
[1.x] Support PSR-7 v2 along side v1