daltcore / php-unleash-client
This package is abandoned and no longer maintained.
No replacement package was suggested.
A PHP client for 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
A simple client for Unleash
Installation
composer require daltcore/php-unleash-client
Usage
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());
More documentation is coming later