attus/porthu

Port.hu TV API

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/attus/porthu

1.0.1 2021-01-11 16:37 UTC

This package is auto-updated.

Last update: 2025-10-12 02:57:10 UTC


README

GitHub release

API for reading the program of Hungarian TV directory Port.hu

use Attus\PortHu\PortHu;
use Attus\PortHu\Exception\PortHuException;

$portHu = new PortHu();
$portHu->addChannel(5);
$t = time() + 86400;
$portHu->setTimestamp($t);
try {
  $result = $portHu->getProgram();
}
catch (PortHuException $ex) {
  var_dump($ex);
}