yii-extension / parameter-service
Parameter settings for Yii.
This package's canonical repository appears to be gone and the package has been frozen as a result.
dev-master / 1.0.x-dev
2020-12-28 14:49 UTC
Requires
- php: ^7.4|^8.0
- yiisoft/arrays: ^3.0@dev
Requires (Dev)
- phpunit/phpunit: ^9.5
- roave/infection-static-analysis-plugin: ^1.7
- vimeo/psalm: ^4.3
This package is auto-updated.
Last update: 2024-01-05 18:08:16 UTC
README
Parameter settings for Yii.
Installation
composer require yii-extension/parameter-service
Usages:
You can inject parameter-service into the controller or action, and automatically all dependencies are resolved by autowired in di-container.
$parameter = new Parameter(['app' => ['name' => 'Demo application.']]); $name = $parameter->get('app.name');
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Mutation testing
The package tests are checked with Infection mutation framework. To run it:
./vendor/bin/infection
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm
License
The parameter-service for Yii Packages is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Extension.