yiisoft/yii-runner

Yii application runner

2.2.0 2024-03-09 14:10 UTC

This package is auto-updated.

Last update: 2024-06-23 14:07:17 UTC


README

Yii

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.

Requirements

  • PHP 8.0 or higher.

Installation

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']
))->run();

Documentation

If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.

License

The Yii Application 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