PHPackages                             torchlighttechnology/ttg-sdk - 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. torchlighttechnology/ttg-sdk

ActiveLibrary

torchlighttechnology/ttg-sdk
============================

TTG SDK

v1.5(7y ago)024.5kPHP

Since Jan 10Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Torchlight-Technology/ttg-sdk)[ Packagist](https://packagist.org/packages/torchlighttechnology/ttg-sdk)[ RSS](/packages/torchlighttechnology-ttg-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (1)Versions (8)Used By (0)

ttg-sdk
=======

[](#ttg-sdk)

A PHP library to interact with TTG's APIs

Install with composer

```
composer require torchlighttechnology/ttg-sdk:"~1.0"

```

Usage in your project

```
use torchlighttechnology\TtgSDK;

$api = new TtgSDK(
  'URL', // required
  'USERNAME', // optional
  'PASSWORD' // optional
);

$args = [
  'foo' => 'bar'
];

// your API method must be a dashed route
// calling it here needs to be camelcased
$response = $api->yourExposedApiMethod( // translates to your-exposed-api-method
  json_encode($args), // JSON encoded array
  'POST' // request type of GET, POST, PUT, DELETE
);
```

Example
=======

[](#example)

Create a new event on delayed events
------------------------------------

[](#create-a-new-event-on-delayed-events)

```
use torchlighttechnology\TtgSDK;

$api = new TtgSDK(
  'http://delayedevents/delayed-events/'
);

// Add custom headers
$api->setHeaders( ['x-api-key: abc1234'] );

$args = [
  $callback_uri,
  $parameters,
  $fire_date
];
$response = $api->create(
  json_encode($args),
  'POST'
);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 53.3% 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 ~29 days

Recently: every ~36 days

Total

6

Last Release

2896d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b34c8cf0202a169795242cbf2a7b55588a2ced7942cc7462a3c76a816de8ce6a?d=identicon)[\_waffles](/maintainers/_waffles)

![](https://www.gravatar.com/avatar/4651bc536d50f16cb4b0f87cdf9737027a8e798fc1f2babfcdaf732089aa9c70?d=identicon)[guyandy](/maintainers/guyandy)

---

Top Contributors

[![guyandy](https://avatars.githubusercontent.com/u/18150451?v=4)](https://github.com/guyandy "guyandy (8 commits)")[![stevewaffles](https://avatars.githubusercontent.com/u/2625357?v=4)](https://github.com/stevewaffles "stevewaffles (5 commits)")[![tz](https://avatars.githubusercontent.com/u/763802?v=4)](https://github.com/tz "tz (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/torchlighttechnology-ttg-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/torchlighttechnology-ttg-sdk/health.svg)](https://phpackages.com/packages/torchlighttechnology-ttg-sdk)
```

PHPackages © 2026

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