Download the PHP package openpublicmedia/pbs-tv-schedules-service-php without Composer
On this page you can find all versions of the php package openpublicmedia/pbs-tv-schedules-service-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openpublicmedia/pbs-tv-schedules-service-php
More information about openpublicmedia/pbs-tv-schedules-service-php
Files in openpublicmedia/pbs-tv-schedules-service-php
Package pbs-tv-schedules-service-php
Short Description PHP client for consuming the PBS TV Schedules Service (TVSS) API.
License Apache-2.0
Informations about the package pbs-tv-schedules-service-php
PBS TV Schedules Service (TVSS) PHP Library
This library abstracts interactions with the PBS TV Schedules Service API.
Installation
Install via composer:
Use
The primary class provided by this library is the
OpenPublicMedia\PbsTvSchedulesService\Client
. A Client
instance can be used
to query the API's endpoints for schedule data.
Examples
Creating a client
The $api_key
and $call_sign
parameters are optional, as not all endpoints
require them.
Getting listings for a day.
Listings are returned in and organized by channel. Each object in the array
contains a $listings
property with listings data.
Getting listings with images.
Searching listings data.
Search results are organized in $program_results
and $show_results
. Utility
methods are provided to filter this results (searchPrograms
, searchShows
).
Development goals
See CONTRIBUTING for information about contributing to this project.
v1
- [x] API authentication (
OpenPublicMedia\PbsTvSchedulesService\Client
) - [x] API direct querying (
$client->get()
) - [x] Result/error handling
- [x] GET wrappers for endpoints (
$client->getXXX()
) - [x] Search endpoints support (
$client->search()
)
v2
- [x] PHP 8 support
v3.x
- [ ] Create entities for response data
- [ ] Channel (???)
- [ ] Listing
- [ ] Image
- [ ] Swap "kids only" and "fetch images" parameters where appropriate