horat1us / yii2-environment-config
Yii2 environment-config integration
Installs: 3 111
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.3
- ext-mbstring: *
- horat1us/environment-config: ^1.4
- yiisoft/yii2: ^2.0.19
Requires (Dev)
- phpunit/phpunit: ^8.4
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-12-16 03:58:41 UTC
README
Main purpose of this package is to integrate horat1us\environment-config and yii\base\Configurable interface
Installation
composer require horat1us/yii2-environment-config
Usage
<?php use Horat1us\Environment; class Config extends Environment\Yii2\Config { // implement your methods (getters) here } // using constructor $config = new Config([ 'keyPrefix' => 'SOME_PREFIX_', ]); // or using container \Yii::$container->get(Config::class, [], [ 'keyPrefix' => 'SOME_PREFIX_', ]);