PHPackages                             openpublicmedia/pbs-station-manager-php - 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. openpublicmedia/pbs-station-manager-php

ActiveLibrary[API Development](/categories/api)

openpublicmedia/pbs-station-manager-php
=======================================

PHP client for interacting with the PBS Station Manager API.

v2.0.1(1y ago)041[2 PRs](https://github.com/OpenPublicMedia/pbs-station-manager-php/pulls)Apache-2.0PHPPHP ^8.0CI failing

Since Jul 12Pushed 1w ago1 watchersCompare

[ Source](https://github.com/OpenPublicMedia/pbs-station-manager-php)[ Packagist](https://packagist.org/packages/openpublicmedia/pbs-station-manager-php)[ RSS](/packages/openpublicmedia-pbs-station-manager-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (7)Versions (10)Used By (0)

PBS Station Manager PHP Library
===============================

[](#pbs-station-manager-php-library)

This library abstracts interactions with the [PBS Station Manager API](https://docs.pbs.org/display/SM/API).

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

[](#installation)

Install via composer:

```
composer require openpublicmedia/pbs-station-manager-php
```

Use
---

[](#use)

The primary class provided by this library is the `OpenPublicMedia\PbsStationManager\Client`. A `Client` instance can be used to query the API in various ways. An API key and secret is optional, as the Station Manager API provides public and internal endpoints.

### Response data structures

[](#response-data-structures)

The API currently only support retrieving station information so `Client`provides two methods:

- `getStation($id)`
- `getStations()`

Both methods return `OpenPublicMedia\PbsStationManager\Entity\Station` instances. A single instance for the singular getter and an array of instances for the plural getter.

### Examples

[](#examples)

#### Creating a client

[](#creating-a-client)

```
use OpenPublicMedia\PbsStationManager\Client;

$api_key = 'xxxxxxxxxxxxxx';
$api_secret = 'xxxxxxxxxxx';

$client = new Client($api_key, $api_secret);
```

#### Getting a single Station

[](#getting-a-single-station)

```
$station = $client->getStation('271a9ab7-e9ed-4fec-9fe9-e46c97a3f8f0');
var_dump($station);
class OpenPublicMedia\PbsStationManager\Entity\Station#40 (35) {
  private $id => string(36) "271a9ab7-e9ed-4fec-9fe9-e46c97a3f8f0"
  private $callSign => string(4) "KCTS"
  private $fullCommonName => string(6) "KCTS 9"
  private $shortCommonName => string(6) "KCTS 9"
  private $tagLine => string(25) "Inspiring a Smarter World"
  private $timezone => string(19) "America/Los_Angeles"
  private $secondaryTimezone => NULL
  private $passportEnabled => NULL
  private $annualPassportQualifyingAmount => NULL
  private $primaryChannel => string(4) "KCTS"
  private $primetimeStart => string(3) "8PM"
  private $tvssUrl => string(26) "https://kcts9.org/schedule"
  private $donateUrl => string(116) "https://www.callswithoutwalls.com/pledgeCart3/?campaign=DF609D70-0D2E-4AE2-8F52-28B9EAE991E0&source=TV1AM-W1809--003"
  private $kidsLiveStreamUrl => NULL
  private $websiteUrl => string(18) "https://kcts9.org/"
  private $facebookUrl => string(30) "https://www.facebook.com/KCTS9"
  private $twitterUrl => string(25) "https://twitter.com/kcts9"
  private $stationKidsUrl => NULL
  private $passportUrl => string(116) "https://www.callswithoutwalls.com/pledgeCart3/?campaign=DF609D70-0D2E-4AE2-8F52-28B9EAE991E0&source=TV1AM-W1809--003"
  private $videoPortalUrl => string(24) "https://video.kcts9.org/"
  private $videoPortalBannerUrl => string(18) "https://kcts9.org/"
  private $pdp => NULL
  private $addressLine1 => string(17) "401 Mercer Street"
  private $addressLine2 => NULL
  private $city => string(7) "Seattle"
  private $state => string(2) "WA"
  private $zipCode => string(5) "98109"
  private $countryCode => string(2) "US"
  private $email => string(20) "membership@kcts9.org"
  private $telephone => string(14) "(800) 937-5287"
  private $fax => string(14) "(206) 443-6691"
  private $images => array(3) {[...]}
  private $pageTracking => string(12) "UA-2418330-1"
  private $eventTracking => string(12) "UA-2418330-1"
  private $updatedAt => class DateTime#34 (3) {...}
}
```

#### Getting all Stations

[](#getting-all-stations)

```
$stations = $client->getStations();
var_dump(count($stations));
int(156)
```

Development goals
-----------------

[](#development-goals)

See [CONTRIBUTING](CONTRIBUTING.md) for information about contributing to this project.

### v1

[](#v1)

- API authentication (`OpenPublicMedia\PbsStationManager\Client`)
- API direct querying (`$client->request()`)
- Result/error handling
- Station entity (`OpenPublicMedia\PbsStationManager\Entity\Station`)
- Station getters.

### v2

[](#v2)

- PHP 8 support

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance73

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~339 days

Recently: every ~320 days

Total

7

Last Release

509d ago

Major Versions

v1.3.1 → v2.0.02021-12-13

PHP version history (4 changes)v1.0.0PHP &gt;=7.1

v1.1.0PHP &gt;=7.2

v1.3.0PHP &gt;=7.4

v2.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![cdubz](https://avatars.githubusercontent.com/u/10456740?v=4)](https://github.com/cdubz "cdubz (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

api-clientphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/openpublicmedia-pbs-station-manager-php/health.svg)

```
[![Health](https://phpackages.com/badges/openpublicmedia-pbs-station-manager-php/health.svg)](https://phpackages.com/packages/openpublicmedia-pbs-station-manager-php)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.5k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[php-soap/wsdl

Deals with WSDLs

183.8M18](/packages/php-soap-wsdl)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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