qlimix/environment
Composer 安装命令:
composer require qlimix/environment
包简介
Environment utilities
关键字:
README 文档
README
Environment utilities. Loading env values through type loader.
Install
Using Composer:
$ composer require qlimix/environment
usage
Environment object
Create at bootstrapping based on for example an env value
<?php use Qlimix\Environment\Environment; $env = Environment::createDevelopment();
Environment object
Create at bootstrapping based on for example an env value
<?php use Qlimix\Environment\Value\Loader; $env = new Loader(); $string = $env->getString('value'); $integer = $env->getInt('value'); $float = $env->getFloat('value'); $bool = $env->getBoolean('value'); $array = $env->getArray('value', ','); $mapped = $env->getMapped('value', function (string $value) { return base64_decode($value); });
Testing
To run all unit tests locally with PHPUnit:
$ vendor/bin/phpunit
Quality
To ensure code quality run grumphp which will run all tools:
$ vendor/bin/grumphp run
Contributing
Please see CONTRIBUTING for details.
统计信息
- 总下载量: 149
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-13