daltcore / php-unleash-client
该包已 弃用 且不再维护。未建议替代包。
Unleash 的 PHP 客户端(https://github.com/Unleash/unleash)
v0.1.0
2018-12-24 19:54 UTC
Requires
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- php: ^7.1
- phpunit/phpunit: ^7.5
- rappasoft/laravel-helpers: ^1.0
- symplify/easy-coding-standard: ^5.2
This package is auto-updated.
Last update: 2021-07-25 01:34:59 UTC
README
Unleash 的简单客户端
安装
composer require daltcore/php-unleash-client
使用方法
include('vendor/autoload.php');
try {
$unleash = new \DALTCORE\Unleash("https://gitlab.com/api/v4/feature_flags/unleash/3", "TokenForUnleash", "ApplicationName");
} catch (MissingParameterException $e) {
die($e->getMessage());
}
var_dump($unleash->feature('test_feature')->isEnabled());
更多文档将稍后提供