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 1mo 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 37% 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

1335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c22cd2ca7bb9afdc194c9f0c7186f44682e4f7c6270a54a8c1a79cb58ec61310?d=identicon)[Radhi](/maintainers/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

[psr/http-factory

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

1.9k692.9M1.9k](/packages/psr-http-factory)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k296.6M804](/packages/symfony-psr-http-message-bridge)[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)[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)
