PHPackages                             yiisoft/yii-runner-frankenphp - 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. [Framework](/categories/framework)
4. /
5. yiisoft/yii-runner-frankenphp

ActiveLibrary[Framework](/categories/framework)

yiisoft/yii-runner-frankenphp
=============================

Web application runner for FrankenPHP worker mode

1.0.0(2mo ago)64133[1 issues](https://github.com/yiisoft/yii-runner-frankenphp/issues)[1 PRs](https://github.com/yiisoft/yii-runner-frankenphp/pulls)BSD-3-ClausePHPPHP 8.1 - 8.5CI passing

Since Apr 12Pushed 1w ago1 watchersCompare

[ Source](https://github.com/yiisoft/yii-runner-frankenphp)[ Packagist](https://packagist.org/packages/yiisoft/yii-runner-frankenphp)[ Docs](https://www.yiiframework.com/)[ GitHub Sponsors](https://github.com/sponsors/yiisoft)[ OpenCollective](https://opencollective.com/yiisoft)[ RSS](/packages/yiisoft-yii-runner-frankenphp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (20)Versions (5)Used By (0)

 [ ![Yii](https://camo.githubusercontent.com/8317c17418b39410a660f5149071d26c5023c0d5fb2b7ebb771324812f666d73/68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667) ](https://github.com/yiisoft)

Yii FrankenPHP worker runner
============================

[](#yii-frankenphp-worker-runner)

[![Latest Stable Version](https://camo.githubusercontent.com/97470a4af97a10fde7089584383526a117601198b53524fe2ff484ddce49f5e8/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f7969692d72756e6e65722d6672616e6b656e7068702f76)](https://packagist.org/packages/yiisoft/yii-runner-frankenphp)[![Total Downloads](https://camo.githubusercontent.com/f69b660fbd0dacf2eedc710174948ca8e1e18f54447caea7d56d62b1abff067f/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f7969692d72756e6e65722d6672616e6b656e7068702f646f776e6c6f616473)](https://packagist.org/packages/yiisoft/yii-runner-frankenphp)[![Build status](https://github.com/yiisoft/yii-runner-frankenphp/actions/workflows/build.yml/badge.svg)](https://github.com/yiisoft/yii-runner-frankenphp/actions/workflows/build.yml)[![Code Coverage](https://camo.githubusercontent.com/79009a1f6b8d7c0e0fb137b751db8a58e63b2e2a5b2b0edb9051b92d91899ed3/68747470733a2f2f636f6465636f762e696f2f67682f796969736f66742f7969692d72756e6e65722d6672616e6b656e7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/yiisoft/yii-runner-frankenphp)[![Mutation testing badge](https://camo.githubusercontent.com/a5793dc1c42d3aeda93172b38eea707f3adf13dde5a16ff0c1acc32c58b23ec5/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246796969736f66742532467969692d72756e6e65722d6672616e6b656e7068702532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/yii-runner-frankenphp/master)[![static analysis](https://github.com/yiisoft/yii-runner-frankenphp/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/yii-runner-frankenphp/actions?query=workflow%3A%22static+analysis%22)[![type-coverage](https://camo.githubusercontent.com/00300607ca0d1e589d56bf98b4f0919be28871639ece5770fb4a0538294eaa39/68747470733a2f2f73686570686572642e6465762f6769746875622f796969736f66742f7969692d72756e6e65722d6672616e6b656e7068702f636f7665726167652e737667)](https://shepherd.dev/github/yiisoft/yii-runner-frankenphp)

The package contains a bootstrap for running Yii3 application using [FrankenPHP](https://frankenphp.dev/) worker mode.

Note

If you do not want to run Yii3 in worker mode, please use [yiisoft/yii-runner-http](https://github.com/yiisoft/yii-runner-http) which is default for [yiisoft/app](https://github.com/yiisoft/app) and [yiisoft/app-api](https://github.com/yiisoft/app-api).

Requirements
------------

[](#requirements)

- PHP 8.1 - 8.5.

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

[](#installation)

The package could be installed with [Composer](https://getcomposer.org):

```
composer require yiisoft/yii-runner-frankenphp
```

General usage
-------------

[](#general-usage)

In your application root create `worker.php`:

```
