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

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

rnr1721/psr7-server
===================

Helper classes to handle PSR-7 server requests

1.0.0(2y ago)0757MITPHPPHP ^7.1 || ^8.0

Since May 11Pushed 2y agoCompare

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

READMEChangelogDependencies (5)Versions (2)Used By (7)

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.
- [laminas/laminas-httphandlerrunner](https://github.com/laminas/laminas-httphandlerrunner) - To send/emit PSR-7 responses

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.9% 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

Unknown

Total

1

Last Release

1094d ago

### Community

Maintainers

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

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (27 commits)")[![Zegnat](https://avatars.githubusercontent.com/u/490579?v=4)](https://github.com/Zegnat "Zegnat (6 commits)")[![frkinta](https://avatars.githubusercontent.com/u/20577647?v=4)](https://github.com/frkinta "frkinta (1 commits)")[![Groruk](https://avatars.githubusercontent.com/u/5796460?v=4)](https://github.com/Groruk "Groruk (1 commits)")[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (1 commits)")[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (1 commits)")[![nickdnk](https://avatars.githubusercontent.com/u/8411314?v=4)](https://github.com/nickdnk "nickdnk (1 commits)")[![takamichi](https://avatars.githubusercontent.com/u/1865622?v=4)](https://github.com/takamichi "takamichi (1 commits)")[![Mohjive](https://avatars.githubusercontent.com/u/4301873?v=4)](https://github.com/Mohjive "Mohjive (1 commits)")[![edudobay](https://avatars.githubusercontent.com/u/4432091?v=4)](https://github.com/edudobay "edudobay (1 commits)")

---

Tags

psr-7psr-17

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.1k](/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

546105.8M963](/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.1M308](/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)
