PHPackages                             zapheus/psr-07-bridge - 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. zapheus/psr-07-bridge

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

zapheus/psr-07-bridge
=====================

PSR-07 bridge for Zapheus framework.

v0.1.2(8y ago)022MITPHPPHP &gt;=5.3.0CI failing

Since Apr 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zapheus/psr-07-bridge)[ Packagist](https://packagist.org/packages/zapheus/psr-07-bridge)[ Docs](https://github.com/zapheus/psr-07-bridge)[ RSS](/packages/zapheus-psr-07-bridge/feed)WikiDiscussions master Synced 2w ago

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

PSR-07 (HTTP Message) Bridge
============================

[](#psr-07-http-message-bridge)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cb85c2896a4e5dacbea392e6ad8bd65104625ffc6247fe27e58b5965327c68e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6170686575732f7073722d30372d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zapheus/psr-07-bridge)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/zapheus/psr-07-bridge/blob/master/LICENSE.md)[![Build Status](https://camo.githubusercontent.com/1a6b2a21f2aa36f37fc405ca7ddc0d5928ce95c0d04b1ea01133521e841fb4e4/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a6170686575732f7073722d30372d6272696467652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zapheus/psr-07-bridge)[![Coverage Status](https://camo.githubusercontent.com/c530abbff5d9031170c18ad1b984e89ae953d2add408fb891bb223874cbdf71a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7a6170686575732f7073722d30372d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zapheus/psr-07-bridge/code-structure)[![Quality Score](https://camo.githubusercontent.com/4a41070b4766eed1c1785e91b09ce9fbd80cc51e3739152a89f1a97f29f434c0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7a6170686575732f7073722d30372d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zapheus/psr-07-bridge)[![Total Downloads](https://camo.githubusercontent.com/da1a6f787cf0df7bebf39fd9fe83af90bc3e9b22e4e62f53c38c9bcada2cfafd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6170686575732f7073722d30372d6272696467652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zapheus/psr-07-bridge)

Converts [PSR-07](http://www.php-fig.org/psr/psr-7) packages to [Zapheus](https://github.com/zapheus/zapheus) HTTP messages and vice versa. Also contains an implementation of [PSR-07](http://www.php-fig.org/psr/psr-7).

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

[](#installation)

Install `PSR-07 Bridge` via [Composer](https://getcomposer.org/):

```
$ composer require zapheus/psr-07-bridge
```

Basic Usage
-----------

[](#basic-usage)

### PSR-07 to Zapheus

[](#psr-07-to-zapheus)

Install a PSR-07 compliant package first (e.g [Diactoros](https://github.com/zendframework/zend-diactoros)):

```
$ composer require zendframework/zend-diactoros
```

```
use Zapheus\Bridge\Psr\Zapheus\Request;
use Zend\Diactoros\ServerRequestFactory;

$psr = ServerRequestFactory::fromGlobals();

// Zapheus\Http\Message\RequestInterface
$request = new Request($psr);
```

### Zapheus to PSR-07

[](#zapheus-to-psr-07)

```
use Zapheus\Bridge\Psr\Interop\ServerRequest;
use Zapheus\Container\Container;
use Zapheus\Http\Message\RequestInterface;
use Zapheus\Http\MessageProvider;

$interface = RequestInterface::class;

$provider = new MessageProvider;

$container = $provider->register(new Container);

$zapheus = $container->get($interface);

// Psr\Http\Message\ServerRequestInterface
$request = new ServerRequest($zapheus);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/zapheus/psr-07-bridge/blob/master/CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [All contributors](https://github.com/zapheus/psr-07-bridge/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/zapheus/psr-07-bridge/blob/master/LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

2995d ago

### Community

Maintainers

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

---

Top Contributors

[![rougin](https://avatars.githubusercontent.com/u/6078637?v=4)](https://github.com/rougin "rougin (80 commits)")

---

Tags

psr-7http-messageBridgezapheus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zapheus-psr-07-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/zapheus-psr-07-bridge/health.svg)](https://phpackages.com/packages/zapheus-psr-07-bridge)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.8k](/packages/guzzlehttp-psr7)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k312.3M931](/packages/symfony-psr-http-message-bridge)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28146.3k](/packages/phpro-http-tools)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28545.4k3](/packages/mezzio-mezzio-authentication-oauth2)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

155.7k](/packages/art4-requests-psr18-adapter)

PHPackages © 2026

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