PHPackages                             kodus/psr7-server - 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. kodus/psr7-server

Abandoned → [nyholm/psr7-server](/?search=nyholm%2Fpsr7-server)Library[HTTP &amp; Networking](/categories/http)

kodus/psr7-server
=================

Helper classes to handle PSR-7 server requests

1.0.1(6y ago)2128.3k—0%MITPHPPHP ^7.1

Since Jul 28Pushed 6y ago2 watchersCompare

[ Source](https://github.com/kodus/psr7-server)[ Packagist](https://packagist.org/packages/kodus/psr7-server)[ Docs](http://tnyholm.se)[ RSS](/packages/kodus-psr7-server/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (11)Used By (0)

Helper class to create PSR-7 server request
===========================================

[](#helper-class-to-create-psr-7-server-request)

[![Latest Version](https://camo.githubusercontent.com/7d03c93e5e6c20d81ada86130ed409896e5ed22f462b6cb0df82fcee2124e195/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4e79686f6c6d2f707372372d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://github.com/Nyholm/psr7-server/releases)[![Build Status](https://camo.githubusercontent.com/c3c0a9f6901f0e73f38e2bafc7201827d871dd99b687ddc544f1ff4952e18d8f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4e79686f6c6d2f707372372d7365727665722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Nyholm/psr7-server)[![Code Coverage](https://camo.githubusercontent.com/90fd07fe54658b8563fdd9f141f5b34acc0b619f86af50a4fbe3714258eb22bb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4e79686f6c6d2f707372372d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Nyholm/psr7-server)[![Quality Score](https://camo.githubusercontent.com/57ebcccb7478b5203d2d8eb23c5875d2a9a81e6a8fd60377067d14766b5822a1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4e79686f6c6d2f707372372d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Nyholm/psr7-server)[![Total Downloads](https://camo.githubusercontent.com/660ea94f1142f84163505ef71994ff23fe30b4191e5e826a58a649af8460ab6b/68747470733a2f2f706f7365722e707567782e6f72672f6e79686f6c6d2f707372372d7365727665722f646f776e6c6f616473)](https://packagist.org/packages/nyholm/psr7-server)[![Monthly Downloads](https://camo.githubusercontent.com/b838d3e564c46006d22983cdfffdcb9e3543db1b155ece33e4d69fec324781f7/68747470733a2f2f706f7365722e707567782e6f72672f6e79686f6c6d2f707372372d7365727665722f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/nyholm/psr7-server)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

A helper class that can create ANY PSR-7 server request.

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

[](#installation)

```
composer require nyholm/psr7-server
```

Usage
-----

[](#usage)

```
// Instanciate ANY PSR-17 factory implementations. Here is nyholm/psr7 as an example
$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();

$creator = new \Nyholm\Psr7Server\ServerRequestCreator(
    $psr17Factory, // ServerRequestFactory
    $psr17Factory, // UriFactory
    $psr17Factory, // UploadedFileFactory
    $psr17Factory  // StreamFactory
);

$serverRequest = $creator->fromGlobals();
```

Other packages
--------------

[](#other-packages)

- [nyholm/psr7](https://github.com/Nyholm/psr7) - A super fast PSR-7 implementation.
- [zendframework/zend-httphandlerrunner](https://github.com/zendframework/zend-httphandlerrunner) - To send/emit PSR-7 responses

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 65.6% 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 ~46 days

Recently: every ~80 days

Total

8

Last Release

2528d ago

Major Versions

0.3.0 → 1.0.02018-12-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec1a54f85a6e46909df4ca4852ada0cc4b1482f7208dfc487d05554087e09cc9?d=identicon)[thomasnordahl-dk](/maintainers/thomasnordahl-dk)

![](https://www.gravatar.com/avatar/9d0432f9ee26cc6265bcf3817d88bf40a4a8669a603785b34946e9c15d7b3451?d=identicon)[boan-jfm](/maintainers/boan-jfm)

![](https://www.gravatar.com/avatar/22799a8c3c482e408f78fd86a999b271f1d5fd2e04b433c6d199f717b3032bb2?d=identicon)[JyskFynskeMedierJoej](/maintainers/JyskFynskeMedierJoej)

![](https://www.gravatar.com/avatar/a974d9ad4b2be14736394ce117f53f83e9186e9cc05002bc004678f0b0587e37?d=identicon)[mifich](/maintainers/mifich)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (21 commits)")[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (5 commits)")[![Zegnat](https://avatars.githubusercontent.com/u/490579?v=4)](https://github.com/Zegnat "Zegnat (5 commits)")[![Mohjive](https://avatars.githubusercontent.com/u/4301873?v=4)](https://github.com/Mohjive "Mohjive (1 commits)")

---

Tags

psr-7psr-17

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

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

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[laminas/laminas-diactoros

PSR HTTP Message implementations

548105.8M965](/packages/laminas-laminas-diactoros)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[nyholm/psr7-server

Helper classes to handle PSR-7 server requests

9521.1M307](/packages/nyholm-psr7-server)[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)
