yiisoft / yii-runner
Yii application runner
                                    Fund package maintenance!
                                                                            
                                                                                                                                        Opencollective
                                                                                    
                                                                            
                                                                                                                                        yiisoft
                                                                                    
                                                                
Installs: 174 165
Dependents: 9
Suggesters: 0
Security: 0
Stars: 16
Watchers: 15
Forks: 2
Open Issues: 5
pkg:composer/yiisoft/yii-runner
Requires
- php: ^8.0
- psr/container: ^1.0|^2.0
- yiisoft/config: ^1.1
- yiisoft/definitions: ^1.0|^2.0|^3.0
- yiisoft/di: ^1.0
- yiisoft/yii-event: ^2.0
Requires (Dev)
- maglnet/composer-require-checker: ^4.2
- phpunit/phpunit: ^9.5
- rector/rector: ^1.0.0
- roave/infection-static-analysis-plugin: ^1.20
- spatie/phpunit-watcher: ^1.23
- vimeo/psalm: ^4.30|^5.21
- yiisoft/test-support: ^3.0
Suggests
- yiisoft/yii-runner-console: Allows to run console application
- yiisoft/yii-runner-http: Allows to run HTTP application
- yiisoft/yii-runner-roadrunner: Allows to run HTTP application for RoadRunner
README
Yii Application Runner
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.