Skip to content

Tggl/php-tggl-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tggl Logo

Tggl PHP SDK

The PHP SDK can be used to evaluate flags and report usage to the Tggl API or a proxy.

🔗 Website📚 Documentation📦 Packagist🎥 Videos

Usage

Install the dependency:

composer require tggl/client

Start evaluating flags:

use Tggl\Client\TgglClient;
 
// Some class to represent your context
class Context {
  $userId;
  $email;
}
 
$client = new TgglClient('YOUR_API_KEY');
 
// An API call to Tggl is performed here
$flags = $client->evalContext(new Context());
 
if ($flags->get('my-feature', 'Variation A') === 'Variation A') {
  // ...
}

About

Tggl PHP client

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages