PSR-7 message implementation that also provides common utility methods

v1.0 2021-06-17 12:54 UTC

This package is auto-updated.

Last update: 2023-05-23 16:01:19 UTC


PSR-7 message implementation that also provides common utility methods.

This package is an informal fork of guzzlehttp/psr v1.8.2, with the following changes:

  1. The root namespace is renamed to RebelCode
  2. The target PHP version is lowered to 7.1

Some other package-level changes include tweaks to the Psalm config and using Docker for testing and building.


Due to a lack of dependency management in WordPress, plugins that use the same 3rd party libraries, but at different versions, will cause conflicts.

For instance, one plugin autoloads Guzzle v6.x and another attempts to autoload Guzzle v7.x. Only one of the two plugins will have its version autoloaded; the other will be using a version that it was not intended to use, and undefined class/method errors, type errors and invalid invocations will ensue.

As such, this package exists so that RebelCode's existing Guzzle dependents can replace Guzzle with an alternative implementation, all the while benefiting from the tried-and-tested code that Guzzle relies on. This is also the reason why the PHP version requirement was downgraded to 7.1 - this is the minimum requirement for RebelCode's plugins.

Important: This package is not intended for open use. Doing so would re-establish the original problem, which is that of different WordPress plugins using the same 3rd party dependencies. Yes, it sucks. What developers need is for WordPress to incorporate some form of dependency management into Core.


composer require rebelcode/psr7


Credits for this package go mostly to the Guzzle team ✌