PHPackages                             yii2-extensions/psr-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. yii2-extensions/psr-bridge

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

yii2-extensions/psr-bridge
==========================

PSR-7 bridge for Yii2 with worker mode support

0.3.0(4mo ago)59.1k↓65.5%22BSD-3-ClausePHPPHP &gt;=8.1CI passing

Since Sep 26Pushed 4d ago1 watchersCompare

[ Source](https://github.com/yii2-extensions/psr-bridge)[ Packagist](https://packagist.org/packages/yii2-extensions/psr-bridge)[ RSS](/packages/yii2-extensions-psr-bridge/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (28)Versions (60)Used By (2)

    ![Yii Framework](https://camo.githubusercontent.com/6f0a7c6c5e9ed8d389db5c82af26a2f70418756b736357378178997e52296488/68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f64657369676e2f6c6f676f2f796969335f66756c6c5f666f725f6461726b2e737667)

PSR bridge
==========

[](#psr-bridge)

 [ ![PHPUnit](https://camo.githubusercontent.com/adbc13e2f289d41de68c896a9b70162225f11af1657d0390eafaed9e7307833e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796969322d657874656e73696f6e732f7073722d6272696467652f6275696c642e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d504850556e6974266c6f676f3d676974687562) ](https://github.com/yii2-extensions/psr-bridge/actions/workflows/build.yml) [ ![Mutation Testing](https://camo.githubusercontent.com/cf1af6928287b756933beec8d0534ca91ebc2581e1cb8419a6863337c1515232/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666f722d7468652d62616467652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969322d657874656e73696f6e732532467073722d6272696467652532466d61696e) ](https://dashboard.stryker-mutator.io/reports/github.com/yii2-extensions/psr-bridge/main) [ ![PHPStan](https://camo.githubusercontent.com/8e6c6c815d6f6882e0ac41a97b84a6f7cc271d654ced70606364de79f0cfcc6a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796969322d657874656e73696f6e732f7073722d6272696467652f7374617469632e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d5048505374616e266c6f676f3d676974687562) ](https://github.com/yii2-extensions/psr-bridge/actions/workflows/static.yml) [ ![Security](https://camo.githubusercontent.com/e4c219176fbba06cf0409b584bcdc27969de39c3155cfa0804712c06445d0a4d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796969322d657874656e73696f6e732f7073722d6272696467652f73656375726974792e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d5365637572697479266c6f676f3d676974687562) ](https://github.com/yii2-extensions/psr-bridge/actions/workflows/security.yml)

 **Transform your Yii2 applications into high-performance, PSR-compliant powerhouses**
 *Supporting traditional SAPI, RoadRunner, FrankenPHP, and worker-based architectures*

Available deployment options
----------------------------

[](#available-deployment-options)

### High-Performance Worker Mode

[](#high-performance-worker-mode)

Long-running PHP workers for higher throughput and lower latency.

[![FrankenPHP](https://camo.githubusercontent.com/a75bcd80621123b406bf73e2f69aaa720cb8ac17a73c14b7d284635e315f73d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4672616e6b656e5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://github.com/yii2-extensions/franken-php)[![RoadRunner](https://camo.githubusercontent.com/e1067aaf596acc202795ef275901a356a575922d7f6bb006a1d4d74951dd3e1b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f526f616452756e6e65722d2532334646364233352e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c50484e325a79423361575230614430694d6a51694947686c6157646f644430694d6a516949485a705a58644362336739496a41674d4341794e4341794e4349675a6d6c7362443069626d39755a53496765473173626e4d39496d6830644841364c79393364336375647a4d7562334a6e4c7a49774d44417663335a6e496a344b50484268644767675a4430695454457949444a4d4d6a49674d544a4d4d5449674d6a4a4d4d6941784d6b77784d694179576949675a6d6c736244306949305a47526b5a475269497650676f38634746306143426b50534a4e4f4341795444453249444577544467674d5468614969426d615778735053496a526b5932516a4d314969382b436a78775958526f49475139496b30784e69413254444977494445775444453249444530576949675a6d6c736244306949305a474e6b497a4e53497650676f384c334e325a7a344b266c6f676f436f6c6f723d7768697465)](https://github.com/yii2-extensions/road-runner)

Features
--------

[](#features)

  ![Feature Overview](./docs/svgs/features-mobile.svg)### Installation

[](#installation)

```
composer require yii2-extensions/psr-bridge:^0.3
```

### Quick start

[](#quick-start)

#### Worker mode (FrankenPHP)

[](#worker-mode-frankenphp)

```
