vjik/yii2-psr-container-proxy

PSR-11 compatible container proxy for Yii2

2.1.0 2023-06-04 16:48 UTC

This package is auto-updated.

Last update: 2024-03-04 18:52:32 UTC


README

Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage

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.