adrenth/tvrage
最新稳定版本:0.1.2
Composer 安装命令:
composer require adrenth/tvrage
包简介
API Client for tvrage.com
关键字:
README 文档
README
This is an API client for the tvrage.com website. It's using the XML feeds that are publicly available. For more info visit http://services.tvrage.com/info.php?page=main.
Installation
Install this package using Composer:
composer require adrenth/tvrage
Caching
Since the tvrage.com XML feeds are usually very slow I advise you to use caching. This package requires a Doctrine Cache instance.
To disable caching just provide a VoidCache or ArrayCache instance.
For more information about Doctrine Cache visit https://github.com/doctrine/cache
Usage
<?php
require '../vendor/autoload.php';
$cache = new \Doctrine\Common\Cache\FilesystemCache('path/to/temp');
$client = new Adrenth\Tvrage\Client($cache);
// Search TV-serie Top Gear
$response = $client->search('top gear'); // ShowsResponse
// Perform a full search on Ray Donovan
$response = $client->fullSearch('ray donovan'); // ShowsResponse
// Get (full) show info by passing the tvrageid (Buffy the Vampire Slayer)
$response = $client->showInfo(2930); // ShowResponse
$response = $client->fullShowInfo(2930); // ShowResponse
// Get Episode list of Buffy the Vampire Slayer
$response = $client->episodeList(2930); // SeasonsResponse
// Get Episode infor of Buffy the Vampire Slayer (season 2, episode 4)
$response = $client->episodeInfo(2930, 2, 4); // EpisodeResponse
SeasonsResponse; contains 0 or moreSeasoninstances (episodeList)EpisodeResponse; contains 0 or 1Episodeinstance (episodeInfo)ShowResponse; contains 0 or 1Showinstance (showInfo)ShowsResponse; contains 0 or moreShowinstances (search, fullSearch)
Contributing
Please contribute to make this package even better.
adrenth/tvrage 适用场景与选型建议
adrenth/tvrage 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 85 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 08 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「library」 「tvrage」 「tvrage.com」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 adrenth/tvrage 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 adrenth/tvrage 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 adrenth/tvrage 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Inbox pattern process implementation for your Laravel Applications
Core library that defines common interfaces used by the rest of the intahwebz..
Amqp classes
Provides command to manage a web library directory
CakePHP Bitly Plugin
统计信息
- 总下载量: 85
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-29