Download the PHP package yiisoft/yii-runner without Composer
On this page you can find all versions of the php package yiisoft/yii-runner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiisoft/yii-runner
More information about yiisoft/yii-runner
Files in yiisoft/yii-runner
Package yii-runner
Short Description Yii application runner
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package yii-runner
Yii Application Runner
The package defines Yii Application Runner. A runner hides application initialization details making configuration process easier.
Requirements
- PHP 8.0 - 8.5.
Installation
The package could be installed with Composer:
General usage
Install one of the adapters:
Instantiate and run it in an entry script:
Configuration
To configure your application, follow the Yii configuration guide. It explains where to put configuration files, register services, and set application parameters.
Choose the configuration environment with the runner's environment constructor argument, as shown in the entry
script above. For example, use dev or prod if you have defined those environments in your application.
See Yii Config environments for how to define them.
For an HTTP application, configure services in these groups:
di-web: define services and their dependencies.di-providers-web: register service providers.di-delegates-web: register additional containers to look up services in.di-tags-web: assign tags to services.
See Yii DI for configuring services, providers, delegates, and tags, and
Yii Definitions for supported service definition formats.
If your application uses different group names, pass them through the runner's diGroup, diProvidersGroup,
diDelegatesGroup, and diTagsGroup constructor arguments. See Yii Config groups
for how to map group names to configuration files.
To use an existing configuration instance, assign $runner = $runner->withConfig($config) before calling run().
To use your own PSR-11 container, assign $runner = $runner->withContainer($container) before calling run().
Both methods return a new runner instance, so use the returned value for subsequent calls.
Documentation
- Internals
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
Follow updates
All versions of yii-runner with dependencies
psr/container Version ^1.0 || ^2.0
yiisoft/config Version ^1.1
yiisoft/definitions Version ^1.0 || ^2.0 || ^3.0
yiisoft/di Version ^1.0
yiisoft/yii-event Version ^2.0

