macropage / xmltv-parser
Parse XMLTV
dev-master
2018-04-04 10:02 UTC
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2024-11-29 00:47:18 UTC
README
Parse XMLTV File (epgguide.net)
<?php require 'vendor/autoload.php'; $Parser = new \macropage\xmltv\parser\parser(); $Parser->setFile($argv[1]); $Parser->setTargetTimeZone('Europe/Berlin'); //$Parser->setChannelfilter('prosiebenmaxx.de'); //optional $Parser->setIgnoreDescr('Keine Details verfügbar.'); //optional try { $Parser->parse(); } catch (Exception $e) { throw new \RuntimeException($e); } /** @noinspection ForgottenDebugOutputInspection */ print_r($Parser->getEpgdata());
Example call: parse.php xml/sample.xml