Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Jun 12, 2024 via composer

guzzlehttp/psr7 2.6.2

PSR-7 message implementation that also provides common utility methods
Package summary
Share
0
issues
1
license
3
MIT
Package created
5 Mar 2015
Version published
3 Dec 2023
Maintainers
5
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
guzzlehttp/psr7@2.6.2
psr/http-factory@1.1.0
ralouphie/getallheaders@3.0.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of guzzlehttp/psr7 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/http-factory1.1.0-MIT
prod
ralouphie/getallheaders3.0.32.89 kBMIT
prod

Visualizations

Frequently Asked Questions

What does guzzlehttp/psr7 do?

Guzzlehttp/psr7 is a proficient library in PHP that provides a robust PSR-7 message implementation for developers. It has stream decorators and offers other functions such as query string parsing. This package provides assorted stream implementations and stream decorators. Notably, it also handles installation using composer, stream management, and includes guidelines for upgrading from the Function API.

How do you use guzzlehttp/psr7?

To utilize Guzzlehttp/psr7, you'll need to install it via composer by running the command composer require guzzlehttp/psr7. To make use of various streams, simply use the use statement to bring them into your scope, and create new instances as required. For example,

use GuzzleHttp\Psr7;

$a = Psr7\Utils::streamFor('abc, ');
$b = Psr7\Utils::streamFor('123.');
$composed = new Psr7\AppendStream([$a, $b]);
$composed->addStream(Psr7\Utils::streamFor(' Above all listen to me'));
echo $composed; // abc, 123. Above all listen to me.

To apply stream decorators, use the DecoratorTrait and implement your custom methods. All operations, such as reading from the stream, seeking positions, writing to it, are handled through the utilities offered by this package.

Where are the guzzlehttp/psr7 docs?

You'll find the official documentation for Guzzlehttp/psr7 on its GitHub repository at https://github.com/guzzle/psr7. Here, you'll get detailed explanations, practical examples, and a comprehensive guide on how to use the package effectively.