yiisoft / yii-runner-web
HTTP application runner
Fund package maintenance!
Opencollective
yiisoft
Requires
- php: ^8.0
- yiisoft/di: @dev
- yiisoft/error-handler: ^2.0
- yiisoft/friendly-exception: ^1.1
- yiisoft/http: ^1.2
- yiisoft/log: ^1.0
- yiisoft/log-target-file: ^1.0
- yiisoft/yii-event: ^1.0
- yiisoft/yii-http: dev-master
- yiisoft/yii-runner: @dev
Requires (Dev)
- httpsoft/http-message: ^1.0
- phpunit/phpunit: ^9.5
- roave/infection-static-analysis-plugin: ^1.10
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^4.12
- yiisoft/test-support: ^1.3
This package is auto-updated.
Last update: 2021-11-10 22:53:15 UTC
README
Yii HTTP Runner
The package contains a bootstrap for running Yii3 HTTP application.
Requirements
- PHP 8.0 or higher.
Installation
The package could be installed with composer:
composer require yiisoft/yii-runner-http --prefer-dist
General usage
In your HTTP entry script do the following:
#!/usr/bin/env php <?php declare(strict_types=1); use Yiisoft\Yii\Runner\Http\HttpApplicationRunner; require_once __DIR__ . '/preload.php'; (new HttpApplicationRunner(__DIR__, $_ENV['YII_DEBUG'], $_ENV['YII_ENV']))->run();
Testing
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Mutation testing
The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:
./vendor/bin/roave-infection-static-analysis-plugin
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
License
The Yii HTTP Runner is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.