# nyholm/psr7

> Small, strict and fast PSR-7 and PSR-17 implementation for PHP

Source: https://talira.ai/catalog/nyholm-psr7-26768wgn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / http types](https://talira.ai/categories/libraries/http-types), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [PSR-7](https://talira.ai/standards/psr-7.md)[^2], [PSR-17](https://talira.ai/standards/psr-17.md)[^2]
- Backed by: [Tobias Nyholm](https://talira.ai/orgs/tobias-nyholm.md)

nyholm/psr7 is a lightweight PHP implementation of the PSR-7 HTTP message interfaces and the PSR-17 factories that create them, in about 1,000 lines. Its objects carry no public methods beyond what PSR-7 defines, it passes the PSR-7 integration tests in full, and its README benchmark puts it ahead of Guzzle's, Laminas' and Slim's implementations. Requests built with it can be sent with HTTPlug or any PSR-18 client, Symfony Flex registers its factories as services, and the companion nyholm/psr7-server package builds server requests from PHP's superglobals. Its author is Tobias Nyholm.

## Links

- GitHub: https://github.com/Nyholm/psr7

## Problems it solves

- create PSR-7 request and response objects in PHP without pulling in Guzzle
- pick a PSR-17 factory to pass to a PSR-18 HTTP client in PHP
- use a fast, standards-strict HTTP message library in a PHP framework

## Features

- Full PSR-7 HTTP message implementation
- PSR-17 factories for requests, responses, streams and URIs
- No public methods beyond the PSR-7 specification
- Works with HTTPlug and any PSR-18 HTTP client
- Symfony Flex registers its factories as services

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.63, adoption 0.62, momentum 0.32, community 0.61, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 4 commits in the last 90 days
- latest release 1.8.3 4 days ago
- 1.3k GitHub stars
- 33 contributors
- accepts sponsorship (Github)
- backed by Tobias Nyholm

## Alternatives

- [laminas-diactoros](https://talira.ai/catalog/laminas-diactoros-j7k429m0.md): PSR-7 HTTP messages and PSR-17 factories for PHP, from Laminas
- [HTTP Factory for Guzzle](https://talira.ai/catalog/http-factory-for-guzzle-wsgaabh4.md): PSR-17 HTTP factory implemented on Guzzle's PSR-7 messages
- [Slim-Psr7](https://talira.ai/catalog/slim-psr7-0wdd9hdh.md): Strict PSR-7 HTTP message implementation from the Slim Framework

## Sources

[^1]: https://github.com/Nyholm/psr7/blob/master/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/Nyholm/psr7/blob/master/README.md (checked 28 Nov 2026)
