kubrey/epg-ncplus
Composer 安装命令:
composer require kubrey/epg-ncplus
包简介
EPG parser of ncplus.pl
README 文档
README
Usage
require_once('vendor/autoload.php');
use ncplus/EpgParser;
$parser = new EpgParser();
// to get all channels programs for day
$data = $parser->loadDay(date('Y-m-d');
if($data){
$programs = $parser->parseCommonData($data);
}
$programs is an array with 2 keys: channels and programs
$programs['channels'] is an array where keys are channel's id and value is channel's name
$programs['programs'] is multidimensional array of programs for each channel
E.g.:
[961]=>
array(10) {
[0]=>
array(6) {
["id"]=>
int(22084262)
["name"]=>
string(6) "Tuvalu"
["airDate"]=>
string(10) "2016-05-05"
["airTime"]=>
string(8) "08:25:00"
["airLength"]=>
int(5400)
["idChannel"]=>
int(961)
}
[1]=>
array(6) {
["id"]=>
int(22084263)
["name"]=>
string(6) "Idiota"
["airDate"]=>
string(10) "2016-05-05"
["airTime"]=>
string(8) "09:55:00"
["airLength"]=>
int(10200)
["idChannel"]=>
int(961)
}
...
In this example 961 is channel id
To get information on program:
$program = $parser->getProgramInfo($id);//$id - program's id from $programs['programs']
if($program){
$parsed = $parser->parseProgramData($program);
}
This should return something like this
array(6) {
["descr"]=>
string(269) "Anton marzy, by uciec na wyspę zwaną Tuvalu. Wszystko wskazuje jednak na to, że jego marzenie raczej się nie spełni biorąc pod uwagę, że Anton pracuje jako konserwator mało popularnego basenu należącego do jego niewidomego ojca. Bohater za wszelką cenę ..."
["urlNcpluspl"]=>
string(45) "2710953-tuvalu-filmbox-arthouse-20160505-0725"
["category"]=>
NULL
["country"]=>
string(6) "Niemcy"
["movieCast"]=>
string(98) "Denis Lavant, Chulpan Khamatova, Philippe Clay, Terrence Gillespie, Catalina Murgea, E.J. Callahan"
["movieDirector"]=>
string(11) "Veit Helmer"
}
kubrey/epg-ncplus 适用场景与选型建议
kubrey/epg-ncplus 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 83 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 05 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「parser」 「movies」 「epg」 「ncplus」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kubrey/epg-ncplus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kubrey/epg-ncplus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kubrey/epg-ncplus 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
An MT940 bank statement parser for PHP
Laravel integration for the jsonapi.org parser
A modern HTML DOM parser for PHP using DOMDocument and Symfony CssSelector.
JPOPHP (JSON Parser Object PHP) is a library for parsing the data in JSON format.
An AirPlay friendly web interface to stream your movies and TV shows from a home server.
统计信息
- 总下载量: 83
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-05