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(7y ago)2129.4k↑350%MITPHPPHP ^7.1

Since Jul 28Pushed 7y 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 2d 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 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

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

2574d ago

Major Versions

0.3.0 → 1.0.02018-12-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5709900?v=4)[Thomas Nordahl Pedersen](/maintainers/thomasnordahl-dk)[@thomasnordahl-dk](https://github.com/thomasnordahl-dk)

![](https://avatars.githubusercontent.com/u/13201214?v=4)[Bo Andersen](/maintainers/boan-jfm)[@boan-jfm](https://github.com/boan-jfm)

![](https://avatars.githubusercontent.com/u/32329468?v=4)[Jesper Østergaard Jensen](/maintainers/JyskFynskeMedierJoej)[@JyskFynskeMedierJoej](https://github.com/JyskFynskeMedierJoej)

![](https://avatars.githubusercontent.com/u/25659854?v=4)[Michelle Fich](/maintainers/mifich)[@mifich](https://github.com/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

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M126](/packages/mezzio-mezzio)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28150.5k](/packages/phpro-http-tools)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

587.2M101](/packages/laminas-laminas-stratigility)

PHPackages © 2026

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