PHPackages                             eonx-com/easy-psr7-factory - 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. [API Development](/categories/api)
4. /
5. eonx-com/easy-psr7-factory

ActiveSymfony-bundle[API Development](/categories/api)

eonx-com/easy-psr7-factory
==========================

Provides an easy way to create PSR7 Request/Response from Symfony Request/Response

4.5.8(2y ago)0938.8kMITPHPPHP ^8.1

Since Sep 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/eonx-com/easy-psr7-factory)[ Packagist](https://packagist.org/packages/eonx-com/easy-psr7-factory)[ RSS](/packages/eonx-com-easy-psr7-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (416)Used By (0)

\---eonx\_docs--- title: Introduction weight: 0 ---eonx\_docs---

Provides an easy way to create PSR7 Request/Response from Symfony Request/Response.

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

[](#installation)

The recommended way to install this package is to use [Composer](https://getcomposer.org/).

```
$ composer require eonx/psr7-factory
```

How it works
------------

[](#how-it-works)

You are working on a PHP application using the well known [Symfony HttpFoundation Component](https://symfony.com/doc/current/components/http_foundation.html) and you want to implement some logic which can be used in any other PHP application using Request/Response? This package is for you!

The EasyPsr7Factory will allow you to create a PSR-7 ServerRequestInterface implementation from a Symfony HttpFoundation Request and then will also allow you to create a Symfony Response from a PSR-7 ResponseInterface.

Usage
-----

[](#usage)

```
use EonX\EasyPsr7Factory\EasyPsr7Factory;

 // Gives you a \Psr\Http\Message\ServerRequestInterface based on all values from the $symfonyRequest
$serverRequest = (new EasyPsr7Factory())->createRequest($symfonyRequest);

// Gives you a \Symfony\Component\HttpFoundation\Response based on all values from the $psr7Response
$symfonyResponse = (new EasyPsr7Factory())->createResponse($psr7Response);
```

Laravel / Lumen
---------------

[](#laravel--lumen)

You like the idea and you're not using Symfony but [Laravel](https://laravel.com/)/[Lumen](https://lumen.laravel.com/) instead? Lucky you this is an easy use case :) Laravel/Lumen Request/Response classes both extend the Symfony ones so this EasyPsr7Factory works for you too!

And just to make your day, it comes with a service provider allowing you to create requests and responses from anywhere you want in your application :)

### Laravel

[](#laravel)

```
// config/app.php

'providers' => [
    // Other Service Providers...

    \EonX\EasyPsr7Factory\Bridge\Laravel\EasyPsr7FactoryServiceProvider::class,
],
```

### Lumen

[](#lumen)

```
// bootstrap/app.php

$app->register(\EonX\EasyPsr7Factory\Bridge\Laravel\EasyPsr7FactoryServiceProvider::class);
```

Contributing
------------

[](#contributing)

None of the existing implementations fit your needs? Don't hesitate to create an [Issue](https://github.com/EonX/EonX/issues/new/choose) about it or event a [Pull Request](https://github.com/EonX/EonX/compare) to help us grow the package.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 81.4% 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 ~4 days

Total

384

Last Release

991d ago

Major Versions

2.5.31 → 3.0.5-alpha12021-02-07

2.5.32 → 3.0.5-alpha22021-03-05

2.5.33 → 3.0.5-alpha42021-03-09

3.4.9 → 4.0.82022-02-14

3.4.25 → 4.1.142022-05-12

PHP version history (4 changes)v0.10.7PHP ^7.1

v2.5.0PHP ^7.2

3.4.0PHP ^7.2 || ^8.0

4.0.8PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![natepage](https://avatars.githubusercontent.com/u/11576446?v=4)](https://github.com/natepage "natepage (70 commits)")[![itorgov](https://avatars.githubusercontent.com/u/1703419?v=4)](https://github.com/itorgov "itorgov (5 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (3 commits)")[![alexndlm](https://avatars.githubusercontent.com/u/6824784?v=4)](https://github.com/alexndlm "alexndlm (2 commits)")[![BOB41K1987](https://avatars.githubusercontent.com/u/20467102?v=4)](https://github.com/BOB41K1987 "BOB41K1987 (2 commits)")[![fsti-francohora](https://avatars.githubusercontent.com/u/38022217?v=4)](https://github.com/fsti-francohora "fsti-francohora (1 commits)")[![ERuban](https://avatars.githubusercontent.com/u/13186130?v=4)](https://github.com/ERuban "ERuban (1 commits)")[![roman-eonx](https://avatars.githubusercontent.com/u/48544017?v=4)](https://github.com/roman-eonx "roman-eonx (1 commits)")[![DKeeper](https://avatars.githubusercontent.com/u/1589751?v=4)](https://github.com/DKeeper "DKeeper (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eonx-com-easy-psr7-factory/health.svg)

```
[![Health](https://phpackages.com/badges/eonx-com-easy-psr7-factory/health.svg)](https://phpackages.com/packages/eonx-com-easy-psr7-factory)
```

###  Alternatives

[aimeos/aimeos-laravel

Cloud native, API first Laravel eCommerce package with integrated AI for ultra-fast online shops, marketplaces and complex B2B projects

8.6k214.7k3](/packages/aimeos-aimeos-laravel)[cloudcreativity/laravel-json-api

JSON API (jsonapi.org) support for Laravel applications.

7881.1M5](/packages/cloudcreativity-laravel-json-api)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)[aimeos/ai-admin-graphql

Aimeos Admin GraphQL API extension

944100.0k4](/packages/aimeos-ai-admin-graphql)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[thecodingmachine/graphqlite-bundle

A Symfony bundle for thecodingmachine/graphqlite.

371.6M3](/packages/thecodingmachine-graphqlite-bundle)

PHPackages © 2026

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