attus/porthu

1.0.1 2021-01-11 16:37 UTC

This package is auto-updated.

Last update: 2024-05-11 23:41:22 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);
}