vjik / yii2-psr-container-proxy
PSR-11 compatible container proxy for Yii2
2.1.0
2023-06-04 16:48 UTC
Requires
- php: ^7.2|^8.0
- psr/container: ^1.0|^2.0
- yiisoft/yii2: ~2.0.40
Requires (Dev)
- phpunit/phpunit: ^8.5|^9.4
This package is auto-updated.
Last update: 2024-11-04 20:15:00 UTC
README
The package provide PSR-11 compatible container proxy for Yii2.
Requirements
- PHP 7.2 or higher.
- Yii 2.0.40 or higher.
Installation
The preferred way to install this extension is through composer:
composer require vjik/yii2-psr-container-proxy
General usage
use Vjik\Yii2\Psr\ContainerProxy\ContainerProxy; $containerProxy = new ContainerProxy(\Yii::$container);
Testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
License
The Yii2 Container Proxy (PSR-11) is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.