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 Apr 29, 2024 via composer

nyholm/psr7 1.8.1

A fast PHP7 implementation of PSR-7
Package summary
Share
0
issues
1
license
2
MIT
Package created
12 Feb 2017
Version published
13 Nov 2023
Maintainers
1
Total deps
2
Direct deps
1
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
2 Packages, Including:
nyholm/psr7@1.8.1
psr/http-factory@1.0.2
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

1
All Dependencies CSV
β“˜ This is a list of nyholm/psr7 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/http-factory1.0.25.44 kBMIT
prod

Visualizations

Frequently Asked Questions

What does nyholm/psr7 do?

Nyholm/psr7 is a super lightweight PHP7 implementation of PSR-7 (PHP Standard Recommendation 7). It is designed to be very fast and very strict, providing an exact implementation of the PSR-7 specification without any extra features or helper methods. This package is beneficial for developers aiming to build scalable and high-performance applications with PHP.

How do you use nyholm/psr7?

To effectively use Nyholm/psr7, start by installing it via composer with the command composer require nyholm/psr7. This package is used to create PSR-7 compliant objects such as requests, streams, and URIs.

For instance, you can create a request object in the following way:

$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();
$request = $psr17Factory->createRequest('GET', 'http://tnyholm.se');
$stream = $psr17Factory->createStream('foobar');

To send a request, you can use any PSR-18 (HTTP client) you prefer like HTTPlug. Additionally, the nyholm/psr7-server package can be used to create server requests from PHP superglobals. Responses can be emitted using the laminas/laminas-httphandlerrunner package.

Where are the nyholm/psr7 docs?

The primary source of documentation for Nyholm/psr7 is the PSR-7 specification itself, as this package aims to be a strict implementation of it. The README on the GitHub repository also contains useful information on installation and basic usage. The package maintainers, Tobias Nyholm and Martijn van der Ven, are committed to keeping this library concise and adhering strictly to the PSR-7 specification, meaning there are no extra classes or functions beyond what is required by the standard.