2017 © Pedro Peláez
 

library xmltv

A library for generating XMLTV files.

image

jaylinski/xmltv

A library for generating XMLTV files.

  • Wednesday, October 18, 2017
  • by jaylinski
  • Repository
  • 1 Watchers
  • 2 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

XMLTV

Latest Stable Version Build Code Coverage Code Style, (*1)

A library for generating XMLTV files., (*2)

Installation

Install the latest version with, (*3)

$ composer require jaylinski/xmltv, (*4)

Usage

<?php

use XmlTv\Tv;
use XmlTv\XmlTv;

require __DIR__.'/vendor/autoload.php';

$tv = new Tv();

$channel = new Tv\Channel('channel1');
$channel->addDisplayName(new Tv\Elements\DisplayName('Channel 1', 'en'));

$programme = new Tv\Programme('channel1', '20170914190000 +0200', '20170914200000 +0200');
$programme->addTitle(new Tv\Elements\Title('CNN News', 'en'));
$programme->addDescription(new Tv\Elements\Desc('World news', 'en'));
$programme->addCategory(new Tv\Elements\Category('news', 'en'));

$tv->addChannel($channel);
$tv->addProgramme($programme);

$xml = XmlTv::generate($tv, $validate = true);

A more detailed example can be found in the specification test., (*5)

Sources

You can write your own source by implementing the XmlTv\Tv\Source interface., (*6)

License

XMLTV is licensed under the MIT License - see the LICENSE file for details., (*7)

The Versions

18/10 2017

dev-master

9999999-dev

A library for generating XMLTV files.

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-dom *
  • ext-xmlwriter *

 

The Development Requires

xmltv

13/09 2017

v0.4.0

0.4.0.0

A library for generating XMLTV files.

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-dom *
  • ext-xmlwriter *

 

The Development Requires

xmltv

03/09 2017

v0.3.0

0.3.0.0

A library for generating XMLTV files.

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-dom *
  • ext-xmlwriter *

 

The Development Requires

xmltv

28/08 2017

v0.2.0

0.2.0.0

Package for creation of XMLTV files.

  Sources   Download

MIT

The Requires

 

The Development Requires

xmltv

28/08 2017

v0.1.1

0.1.1.0

Package for creation of XMLTV files.

  Sources   Download

MIT

The Requires

 

The Development Requires

xmltv

28/08 2017

v0.1.0

0.1.0.0

Package for creation of XMLTV files.

  Sources   Download

MIT

The Requires

 

The Development Requires

xmltv