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
Requires
- php: ^7.2 || ^8.0
- guzzlehttp/guzzle: ^6.5
README
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); }