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 today

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

Maturity58

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

1392d 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

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k320.9M985](/packages/symfony-psr-http-message-bridge)[psr/http-factory

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

1.9k747.1M2.7k](/packages/psr-http-factory)[laminas/laminas-diactoros

PSR HTTP Message implementations

548115.3M1.2k](/packages/laminas-laminas-diactoros)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

587.2M102](/packages/laminas-laminas-stratigility)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28150.5k](/packages/phpro-http-tools)

PHPackages © 2026

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