PHPackages                             tggl/client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tggl/client

ActiveLibrary

tggl/client
===========

Tggl PHP client

2.0.0(1y ago)250.3k↓25%1MITPHP

Since May 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Tggl/php-tggl-client)[ Packagist](https://packagist.org/packages/tggl/client)[ Docs](https://tggl.io/developers/sdks/php)[ RSS](/packages/tggl-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

   ![Tggl Logo](https://camo.githubusercontent.com/80a754bde85cf555324ba627a475fc6446b480592d6aba6c809e8362221a61ae/68747470733a2f2f7467676c2e696f2f7467676c2d696f2d6c6f676f2d626c61636b2e737667)

Tggl PHP SDK
============

[](#tggl-php-sdk)

 The PHP SDK can be used to evaluate flags and report usage to the Tggl API or a [proxy](https://tggl.io/developers/evaluating-flags/tggl-proxy).

 [🔗 Website](https://tggl.io/) • [📚 Documentation](https://tggl.io/developers/sdks/php) • [📦 Packagist](https://packagist.org/packages/tggl/client) • [🎥 Videos](https://www.youtube.com/@Tggl-io)

Usage
-----

[](#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') {
  // ...
}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance41

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~72 days

Recently: every ~56 days

Total

9

Last Release

517d ago

Major Versions

1.5.0 → 2.0.02024-12-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e0e3fa40a910ca80f352c52f5f69a95f14be5787454761447dc96014baa1841?d=identicon)[tggl](/maintainers/tggl)

---

Top Contributors

[![nick-keller](https://avatars.githubusercontent.com/u/2682443?v=4)](https://github.com/nick-keller "nick-keller (16 commits)")[![ninsuo](https://avatars.githubusercontent.com/u/4152132?v=4)](https://github.com/ninsuo "ninsuo (1 commits)")

---

Tags

sdkfeature togglefeature flagKill switchremote configTggl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tggl-client/health.svg)

```
[![Health](https://phpackages.com/badges/tggl-client/health.svg)](https://phpackages.com/packages/tggl-client)
```

###  Alternatives

[configcat/configcat-client

ConfigCat is a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.

221.1M6](/packages/configcat-configcat-client)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
