breuls/tmdb-library
Composer 安装命令:
composer require breuls/tmdb-library
包简介
PHP wrapper classes for TMDB (TheMovieDatabase) API v3.
README 文档
README
PHP wrapper classes for TMDB (TheMovieDatabase) API v3.
Thanks to:
Calibrate (www.calibrate.be)
Requirements:
- PHP 5.3+
- Curl
- TMDB Api-key
Basic usage:
require_once('vendor/autoload.php'); $db = TMDB\Client::getInstance('<your api-key>'); $db->adult = true; // return adult content $db->paged = false; // merges all paged results into a single result automatically $title = 'The Matrix'; $year = '1999'; $results = $db->search('movie', array('query'=>$title, 'year'=>$year)); $movie = reset($results); $images = $movie->posters('300');
TMDB\Client contains the API wrapper for querying TMDB. Results are transformed into the helper objects automatically.
For example searching for 'movie' will result in a array of Movie objects.
More info will come soon.
Assets
Several objects are defined for the 'assets' TMDB uses. These include:
- Movie
- Person
- Company
- Collection
- Genre
You can create a new asset and have it filled in with information automatically by passing in the id in the constructor.
For example:
$movie = new Movie(10);
Will load a movie object with the info for a movie with tmdb id 10;
breuls/tmdb-library 适用场景与选型建议
breuls/tmdb-library 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.52k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2013 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 breuls/tmdb-library 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 breuls/tmdb-library 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2013-09-23