PHPackages                             forward-force/tms-api-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. [API Development](/categories/api)
4. /
5. forward-force/tms-api-sdk

ActiveLibrary[API Development](/categories/api)

forward-force/tms-api-sdk
=========================

PHP Wrapper around TMS API

2.0.1(4mo ago)053.7k—3.1%1[1 PRs](https://github.com/forward-force/php-tms-sdk/pulls)MITPHPPHP ^8.1

Since Sep 21Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/forward-force/php-tms-sdk)[ Packagist](https://packagist.org/packages/forward-force/tms-api-sdk)[ RSS](/packages/forward-force-tms-api-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

TMS API - PHP SDK
=================

[](#tms-api---php-sdk)

Installation
------------

[](#installation)

Install via composer as follows:

```
composer require forward-force/tms-api-sdk

```

Usage
-----

[](#usage)

### Authentication

[](#authentication)

In order to authenticate, you need to pass the *PRIVATE API TOKEN* like so:

```
$tms = new TMS($token);

```

### Examples

[](#examples)

Get Lineups by zip code and country (country is optional):

```
$lineups = $tms->lineups()->fetchByZipcode('USA','78701');
```

Fetch all channels for a lineup:

```
try {
    $channels = $tms->lineups()->fetchChannels('USA-DTVNOW-DEFAULT');
    var_dump($channels);
} catch (GuzzleException $e) {
    var_dump($e->getMessage());
}
```

Retrieve an image for an asset:

```
try{
    $params = [
        'w' => 100,
        'h' => 100,
        'trim' => 'true',
    ];
    $media = $tms->lineups()->fetchAssetFromMedia($token, 's51307_ll_h3_aa.png',$params);
    var_dump($media);
} catch (GuzzleException $e) {
    var_dump($e->getMessage());
}
```

Retrieve airings by station id:

```
try {
    $airingsByStation = $tms->lineups()->getStationAirings('10142', date("c", strtotime('-2 days')));
    var_dump($airingsByStation);
} catch (GuzzleException $e) {
    var_dump($e->getMessage());
}
```

Retrieve programs by tms id:

```
try {
    $programsByTmsId = $tms->lineups()->getPrograms('EP001151270163');;
    var_dump($programsByTmsId);
} catch (GuzzleException $e) {
    var_dump($e->getMessage());
}
```

Contributions
-------------

[](#contributions)

To run locally, you can use the docker container provided here. You can run it like so:

```
docker-compose up

```

There is auto-generated documentation as to how to run this library on local, please take a look at [phpdocker/README.md](phpdocker/README.md)

*If you find an issue, have a question, or a suggestion, please don't hesitate to open a github issue.*

### Acknowledgments

[](#acknowledgments)

Thank you to [phpdocker.io](https://phpdocker.io) for making getting PHP environments effortless!

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance77

Regular maintenance activity

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~157 days

Recently: every ~327 days

Total

11

Last Release

125d ago

Major Versions

1.0.9 → 2.0.12026-01-14

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.0.9PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c43db68a7e04c12abb3642479297b5080f47c3b436875c059ec278ec1655e78f?d=identicon)[teodortalov](/maintainers/teodortalov)

---

Top Contributors

[![kdimitrov](https://avatars.githubusercontent.com/u/719200?v=4)](https://github.com/kdimitrov "kdimitrov (10 commits)")[![hubersond](https://avatars.githubusercontent.com/u/22603770?v=4)](https://github.com/hubersond "hubersond (8 commits)")[![teodortalov](https://avatars.githubusercontent.com/u/2781820?v=4)](https://github.com/teodortalov "teodortalov (7 commits)")[![isheo36](https://avatars.githubusercontent.com/u/15328424?v=4)](https://github.com/isheo36 "isheo36 (2 commits)")

---

Tags

apitmsforwardforce

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/forward-force-tms-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/forward-force-tms-api-sdk/health.svg)](https://phpackages.com/packages/forward-force-tms-api-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)

PHPackages © 2026

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