1. Install the SDK
composer require tggl/client
2. Create the client
use Tggl\Client\TgglClient;
$client = new TgglClient('YOUR_API_KEY');
3. Start using feature flags
$flags = $client->evalContext(new Context($userId));
if ($flags->get('my-feature', true)) {
// ...
}