Registry / http-client / guzzlehttp-psr7

guzzlehttp-psr7

JSON →
library2.12.0phppackagistunverified

PSR-7 message implementation that also provides common utility methods

composer require guzzlehttp/psr7
INSTALL
IMPORT
SIG · GUZZLEHTTP-PSR7
G
guzzlehttp-psr7
http-clientphpv2.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Utils
use GuzzleHttp\Psr7\Utils;

Create a PSR-7 stream from a string

use GuzzleHttp\Psr7\Utils; $stream = Utils::streamFor('Hello, world!'); echo $stream->getContents(); // Hello, world!
Debug
Known issues
breakingVersion 2.x requires PHP 7.2+ and uses PSR-7 2.0 interfaces; upgrading from 1.x may break code relying on deprecated methods.
fix
Update code to use PSR-7 2.0 interfaces and remove calls to deprecated methods like `getBody()->getContents()` if using older patterns.
affects: >=2.0.0
Upgrade
Version history
2.12.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
guzzlehttp-psr7 — pip install guzzlehttp-psr7 · libregistry