jaylinski/xmltv 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jaylinski/xmltv

最新稳定版本:v4.0.0

Composer 安装命令:

composer require jaylinski/xmltv

包简介

A library for generating XMLTV files.

关键字:

README 文档

README

Latest Stable Version Build Code Coverage Code Style

A library for generating XMLTV files.

Installation

Install the latest version with

$ composer require jaylinski/xmltv

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.

Sources

You can write your own source by implementing the XmlTv\Tv\Source interface.

License

XMLTV is licensed under the MIT License - see the LICENSE file for details.

统计信息

  • 总下载量: 547
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-27