PHPackages                             adinan-cenci/psr-7 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. adinan-cenci/psr-7

ActiveLibrary[HTTP &amp; Networking](/categories/http)

adinan-cenci/psr-7
==================

An implementation of the PSR-7 specification.

v3.0.0(1mo ago)0871MITPHP

Since Jan 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/adinan-cenci/psr-7)[ Packagist](https://packagist.org/packages/adinan-cenci/psr-7)[ RSS](/packages/adinan-cenci-psr-7/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (23)Used By (1)

PSR-7
=====

[](#psr-7)

This is an implementation of the [PSR-7: HTTP message interfaces](https://www.php-fig.org/psr/psr-7/) specification.

Why did I reinvented the wheel when there are so many of those already ?

Because I wanted, that's why.

Niceties
--------

[](#niceties)

Besides implementing PSR-7, there is other methods to make things a little easier.

**ServerRequest**

```
$fallback = null;

$request->post($name, $fallback);
$request->get($name, $fallback);
$request->cookie($name, $fallback);
$request->server($name, $fallback);
```

Methods to quickly retrieve data from the request, think of the traditional globals: `$_POST`, `$_GET`, `$_COOKIE` and `$_SERVER`.

**Response**

```
$response = $response->withAddedCookie(
    'cookie_name',
    $cookieValue,
    $twentyFourHours,         // Max age.
    $now + $twentyFourHours,  // Expiration, accepts DateTime objects as well.
    '/',                      // Path.
    'my-domain.com',          // Domain.
    true,                     // Secure.
    true,                     // Http only.
    'Strict'                  // Same site.
);
```

A method to help compose cookies.

License
-------

[](#license)

MIT

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~106 days

Recently: every ~237 days

Total

12

Last Release

57d ago

Major Versions

v1.1.4 → v2.0.02025-05-20

v2.0.1 → v3.0.02026-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c1eb1b039e965bb307f010fb1dd41fbc79c8c9e9a65324b8f18d2bb9168097d?d=identicon)[AdinanCenci](/maintainers/AdinanCenci)

---

Top Contributors

[![adinan-cenci](https://avatars.githubusercontent.com/u/1629643?v=4)](https://github.com/adinan-cenci "adinan-cenci (94 commits)")

---

Tags

httppsrpsr-7

### Embed Badge

![Health badge](/badges/adinan-cenci-psr-7/health.svg)

```
[![Health](https://phpackages.com/badges/adinan-cenci-psr-7/health.svg)](https://phpackages.com/packages/adinan-cenci-psr-7)
```

###  Alternatives

[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[laminas/laminas-diactoros

PSR HTTP Message implementations

546105.8M965](/packages/laminas-laminas-diactoros)[psr/http-server-handler

Common interface for HTTP server-side request handler

175101.3M921](/packages/psr-http-server-handler)[psr/http-server-middleware

Common interface for HTTP server-side middleware

18091.2M1.5k](/packages/psr-http-server-middleware)[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[laminas/laminas-psr7bridge

Bidirectional conversions between PSR-7 and laminas-http messages

117.9M18](/packages/laminas-laminas-psr7bridge)

PHPackages © 2026

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