PHPackages                             slim/psr7 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. slim/psr7

ActiveLibrary[Framework](/categories/framework)

slim/psr7
=========

Strict PSR-7 implementation

1.8.0(6mo ago)14818.0M—0%43[2 issues](https://github.com/slimphp/Slim-Psr7/issues)[1 PRs](https://github.com/slimphp/Slim-Psr7/pulls)20MITPHPPHP ^8.0CI passing

Since May 3Pushed 5mo ago8 watchersCompare

[ Source](https://github.com/slimphp/Slim-Psr7)[ Packagist](https://packagist.org/packages/slim/psr7)[ Docs](https://www.slimframework.com)[ RSS](/packages/slim-psr7/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (27)Used By (20)Security (1)

Slim PSR-7
==========

[](#slim-psr-7)

Strict PSR-7 implementation used by the [Slim Framework](http://www.slimframework.com/), but you may use it separately with any framework compatible with the [PSR-7 standard](https://www.php-fig.org/psr/psr-7/).

[![Build Status](https://github.com/slimphp/Slim-Psr7/workflows/Tests/badge.svg?branch=master)](https://github.com/slimphp/Slim-Psr7/actions?query=branch:master)[![Coverage Status](https://camo.githubusercontent.com/dbf1daf9c3c025de46ffb5b75524c6d4ba17771c633e0409b5a8154f328beb14/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f736c696d7068702f536c696d2d507372372f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/slimphp/Slim-Psr7?branch=master)[![Total Downloads](https://camo.githubusercontent.com/9ddb46b63c77542f365ed4c090552c36e1e23bee61f3bcbd73001c4812cc7712/68747470733a2f2f706f7365722e707567782e6f72672f736c696d2f707372372f646f776e6c6f616473)](https://packagist.org/packages/slim/psr7)[![License](https://camo.githubusercontent.com/39dc305bd846082f73555eb52e2e87c3a92363a3b7e7c0e48e18a6bd82cb32dc/68747470733a2f2f706f7365722e707567782e6f72672f736c696d2f707372372f6c6963656e7365)](https://packagist.org/packages/slim/psr7)

Installation
------------

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org) to install this library.

```
$ composer require slim/psr7
```

This will install the `slim/psr7` component and all required dependencies.

PHP 8.0 or newer is required.

Tests
-----

[](#tests)

To execute the test suite, you'll need to clone the repository and install the dependencies.

```
$ git clone https://github.com/slimphp/Slim-Psr7
$ composer install
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover security related issues, please email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Josh Lockhart](https://github.com/codeguy)
- [Andrew Smith](https://github.com/silentworks)
- [Rob Allen](https://github.com/akrabat)
- [Pierre Bérubé](https://github.com/l0gicgate)
- [All Contributors](../../contributors)

License
-------

[](#license)

This component is licensed under the MIT license. See [License File](LICENSE.md)for more information.

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance68

Regular maintenance activity

Popularity65

Solid adoption and visibility

Community52

Growing community involvement

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~56 days

Total

25

Last Release

197d ago

Major Versions

0.6 → 1.0.02020-01-04

PHP version history (6 changes)0.1.0PHP ^7.1

1.0.0PHP ^7.2

1.3.0PHP ^7.2 || ^8.0

1.5PHP ^7.3 || ^8.0

1.6PHP ^7.4 || ^8.0

1.7.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/921c804872f4924b305115ce412a6f109d341b8ef3d5b905c5969275e295fc70?d=identicon)[codeguy](/maintainers/codeguy)

![](https://avatars.githubusercontent.com/u/33135?v=4)[Rob Allen](/maintainers/akrabat)[@akrabat](https://github.com/akrabat)

![](https://www.gravatar.com/avatar/0a802102aa155a7660b7402a92e3e48e918276c7a16827e0c5de9c466ab4728d?d=identicon)[l0gicgate](/maintainers/l0gicgate)

---

Top Contributors

[![l0gicgate](https://avatars.githubusercontent.com/u/6510935?v=4)](https://github.com/l0gicgate "l0gicgate (231 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (76 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (39 commits)")[![williamdes](https://avatars.githubusercontent.com/u/7784660?v=4)](https://github.com/williamdes "williamdes (36 commits)")[![nbayramberdiyev](https://avatars.githubusercontent.com/u/23094428?v=4)](https://github.com/nbayramberdiyev "nbayramberdiyev (36 commits)")[![adriansuter](https://avatars.githubusercontent.com/u/3974990?v=4)](https://github.com/adriansuter "adriansuter (32 commits)")[![mapogolions](https://avatars.githubusercontent.com/u/41992686?v=4)](https://github.com/mapogolions "mapogolions (22 commits)")[![t0mmy742](https://avatars.githubusercontent.com/u/29512640?v=4)](https://github.com/t0mmy742 "t0mmy742 (13 commits)")[![Stilch](https://avatars.githubusercontent.com/u/41281401?v=4)](https://github.com/Stilch "Stilch (10 commits)")[![danopz](https://avatars.githubusercontent.com/u/2058825?v=4)](https://github.com/danopz "danopz (9 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (8 commits)")[![theodorejb](https://avatars.githubusercontent.com/u/3053271?v=4)](https://github.com/theodorejb "theodorejb (7 commits)")[![cosmastech](https://avatars.githubusercontent.com/u/42181698?v=4)](https://github.com/cosmastech "cosmastech (4 commits)")[![1ma](https://avatars.githubusercontent.com/u/1456708?v=4)](https://github.com/1ma "1ma (3 commits)")[![edudobay](https://avatars.githubusercontent.com/u/4432091?v=4)](https://github.com/edudobay "edudobay (2 commits)")[![andrew-demb](https://avatars.githubusercontent.com/u/12499813?v=4)](https://github.com/andrew-demb "andrew-demb (2 commits)")[![kelunik](https://avatars.githubusercontent.com/u/2743004?v=4)](https://github.com/kelunik "kelunik (2 commits)")[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (2 commits)")[![noahboegli](https://avatars.githubusercontent.com/u/39568628?v=4)](https://github.com/noahboegli "noahboegli (2 commits)")[![kamil-tekiela](https://avatars.githubusercontent.com/u/6583064?v=4)](https://github.com/kamil-tekiela "kamil-tekiela (2 commits)")

---

Tags

httppsr-7psr7

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/slim-psr7/health.svg)

```
[![Health](https://phpackages.com/badges/slim-psr7/health.svg)](https://phpackages.com/packages/slim-psr7)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.0B3.2k](/packages/guzzlehttp-psr7)[guzzlehttp/guzzle

Guzzle is a PHP HTTP client library

23.4k991.0M31.1k](/packages/guzzlehttp-guzzle)[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[slim/http

Slim PSR-7 Object Decorators

1502.3M66](/packages/slim-http)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

586.6M81](/packages/laminas-laminas-stratigility)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
