PHPackages                             guennichi/psr7-request-creator - 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. guennichi/psr7-request-creator

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

guennichi/psr7-request-creator
==============================

Factory class to create request body from PSR-7 server requests

1.0.2(3y ago)010MITPHPPHP ^8.1

Since Jul 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rguennichi/psr7-request-creator)[ Packagist](https://packagist.org/packages/guennichi/psr7-request-creator)[ Docs](https://guennichi.com)[ RSS](/packages/guennichi-psr7-request-creator/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

PSR-7 Request Creator
=====================

[](#psr-7-request-creator)

Factory class to create simple request objects from PSR-7 server requests.

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

[](#installation)

```
composer require guennichi/psr7-request-creator
```

Usage
-----

[](#usage)

### Create request object

[](#create-request-object)

This library can be used with [`Nyholm/psr7`](https://github.com/Nyholm/psr7) / [`Nyholm/psr7-server`](https://github.com/Nyholm/psr7-server)or any other PSR-7 implementation to transform server requests:

```
$psr17Factory = new Nyholm\Psr7\Factory\Psr17Factory();

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

// Psr\Http\Message\ServerRequestInterface instance
$serverRequest = $serverRequestCreator->fromGlobals();

$requestCreator = new Guennichi\Psr7RequestFactory\RequestCreator(
    $psr17Factory, // RequestFactory
    $psr17Factory, // StreamFactory
    new Http\Message\MultipartStream\MultipartStreamBuilder($psr17Factory),
);

// Psr\Http\Message\RequestInterface instance
$request = $requestCreator->fromServerRequest('/example', $serverRequest);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

1437d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/287419?v=4)[Radhi](/maintainers/Radhi)[@radhi](https://github.com/radhi)

---

Top Contributors

[![rguennichi](https://avatars.githubusercontent.com/u/88873441?v=4)](https://github.com/rguennichi "rguennichi (11 commits)")

---

Tags

psr-7psr-17

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/guennichi-psr7-request-creator/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B4.4k](/packages/guzzlehttp-psr7)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k29.9M347](/packages/openai-php-client)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k329.9M1.1k](/packages/symfony-psr-http-message-bridge)[getbrevo/brevo-php

Official PHP SDK for the Brevo API.

1004.1M59](/packages/getbrevo-brevo-php)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

597.5M105](/packages/laminas-laminas-stratigility)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

36826.2k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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