2017 © Pedro PelĂĄez
 

library xmltv-parser

Parse XMLTV

image

macropage/xmltv-parser

Parse XMLTV

  • Wednesday, April 4, 2018
  • by macropage
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

xmltv-parser

Parse XMLTV File (epgguide.net), (*1)

<?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, (*2)

The Versions

04/04 2018

dev-master

9999999-dev

Parse XMLTV

  Sources   Download

MIT

The Requires

  • php >=7.1

 

by Michael Bladowski