Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

DALTCORE/php-unleash-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-unleash-client

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