Yii application runner

2.1.0 2023-12-06 20:02 UTC

This package is auto-updated.

Last update: 2024-02-07 18:12:14 UTC



Yii application runner

Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis type-coverage

The package defines Yii application runner. A runner hides application initialization details making configuration process easier.


  • PHP 8.0 or higher.


The package could be installed with composer:

composer require yiisoft/yii-runner

General usage

Install one of the adapters:

Instantiate and run it in an entry script:



use Yiisoft\Yii\Runner\Http\HttpApplicationRunner;

require_once __DIR__ . '/autoload.php';

(new HttpApplicationRunner(
    rootPath: __DIR__, 
    debug: $_ENV['YII_DEBUG'],
    environment: $_ENV['YII_ENV']


Unit testing

The package is tested with PHPUnit. To run tests:


Mutation testing

The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:


Static analysis

The code is statically analyzed with Psalm. To run static analysis:



The Yii Runner is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack