PHPackages                             thecodingmachine/symfony-httpinterop-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. thecodingmachine/symfony-httpinterop-bridge

Abandoned → [thecodingmachine/symfony-psr15-bridge](/?search=thecodingmachine%2Fsymfony-psr15-bridge)Library

thecodingmachine/symfony-httpinterop-bridge
===========================================

A bridge between Symfony middlewares (StackPHP) and compliant middleware for converting Symfony Http abstractions to PSR-15 and back.

v1.0.0(7y ago)164.7k6[1 issues](https://github.com/thecodingmachine/symfony-psr15-bridge/issues)[2 PRs](https://github.com/thecodingmachine/symfony-psr15-bridge/pulls)MITPHPPHP &gt;=7.0

Since Nov 23Pushed 4y ago9 watchersCompare

[ Source](https://github.com/thecodingmachine/symfony-psr15-bridge)[ Packagist](https://packagist.org/packages/thecodingmachine/symfony-httpinterop-bridge)[ RSS](/packages/thecodingmachine-symfony-httpinterop-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (9)Used By (0)

thecodingmachine/symfony-psr15-bridge
=====================================

[](#thecodingmachinesymfony-psr15-bridge)

Bridges between [Symfony HttpKernel](http://symfony.com/doc/current/components/http_kernel/introduction.html) (a.k.a. [StackPHP Middleware](http://stackphp.com/)) and [PSR-15 middlewares](https://www.php-fig.org/psr/psr-15/).

[![Latest Stable Version](https://camo.githubusercontent.com/86b9790b247fbfaae298cd500698f9d6f3c23ecd16890e9feb2c2084c845c0a0/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d70737231352d6272696467652f762f737461626c65)](https://packagist.org/packages/thecodingmachine/symfony-psr15-bridge)[![Total Downloads](https://camo.githubusercontent.com/5c4123f7cd8fcc00661b7179c3fe26c09c9f0a16b3f20097a0974a49f8d5cab5/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d70737231352d6272696467652f646f776e6c6f616473)](https://packagist.org/packages/thecodingmachine/symfony-psr15-bridge)[![Latest Unstable Version](https://camo.githubusercontent.com/92e5369c18665a370befbc3df7bf6d394d037a6434e6a8a24cba5d8ea23a2dc0/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d70737231352d6272696467652f762f756e737461626c65)](https://packagist.org/packages/thecodingmachine/symfony-psr15-bridge)[![License](https://camo.githubusercontent.com/be27a82260908786dbb7897da4f57223ec1b09b07ba2c44caf6ab7fed885701a/68747470733a2f2f706f7365722e707567782e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d70737231352d6272696467652f6c6963656e7365)](https://packagist.org/packages/thecodingmachine/symfony-psr15-bridge)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7f43bd207094362560f3a76e153025f1b4c0f13165b97cab4bfae1a2aa12c1ab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746865636f64696e676d616368696e652f73796d666f6e792d70737231352d6272696467652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thecodingmachine/symfony-psr15-bridge/?branch=master)[![Build Status](https://camo.githubusercontent.com/5d1f420f649048bd0f4bcb064cde14bb886672f974b6d316d02335b962125cb8/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f73796d666f6e792d70737231352d6272696467652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thecodingmachine/symfony-psr15-bridge)[![Coverage Status](https://camo.githubusercontent.com/66fe06c9c782dcd2dc92e0a74c89314a242c4ecacc241ca7f6de730785a6c527/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746865636f64696e676d616368696e652f73796d666f6e792d70737231352d6272696467652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/thecodingmachine/symfony-psr15-bridge?branch=master)

Those adapters are built on top of the existing [symfony/psr-http-message-bridge](https://github.com/symfony/psr-http-message-bridge) that bridges Symfony and PSR-7 HTTP messages.

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

[](#installation)

The recommended way to install symfony-psr15-bridge is through [Composer](http://getcomposer.org/):

```
composer require thecodingmachine/symfony-psr15-bridge
```

Usage
-----

[](#usage)

By default, the Symfony HttpFoundation and HttpKernel are used. For PSR-7, the [Zend-Diactoros](https://github.com/zendframework/zend-diactoros) implementation is used. These implementations can be changed if needed.

### Wrapping a HttpKernel

[](#wrapping-a-httpkernel)

```
