duck7000/imdb-graphql-php
Composer 安装命令:
composer require duck7000/imdb-graphql-php
包简介
Library for retrieving film and tv information from IMDb through GraphQL
README 文档
README
PHP library for retrieving film and TV information from IMDb.
This library uses GraphQL API from imdb to get the data.
Thanks to @tBoothman for his groundwork to make this possible!
imdbGraphQLPHP is NOT a fork, it is based on imdbphp
Retrieve all information from IMDb including films, TV series, TV episodes, people and coming soon releases.
Search for titles on IMDb.
Download film posters, actor, recommendations, foto's and episode images.
The results can be localized and cached.
Localization only seems to effect title, photo, plotoutline and recommendations (titles only). Check wiki homepage to enable.
There is a full list of all methods, descriptions and outputs in the wiki.
https://github.com/duck7000/imdbGraphQLPHP/wiki
Quick Start
- Clone this repo or download the latest [release zip]
- Find a film you want the data for e.g. A clockwork orange https://www.imdb.com/title/tt0066921/
- Include
bootstrap.php. - Get some data
For Title search:
$imdb = new \Imdb\TitleSearch(); $results = $imdb->search("1408", "MOVIE,TV", "1955-01-01", "2000-01-01"); All info is in the wiki page
For Advanced title search:
$imdb = new \Imdb\TitleSearchAdvanced(); $results = $imdb->advancedSearch($searchTerm, $genres, $types, $creditId, $startDate, $endDate, $countryId, $languageId); All info is in the wiki page
For Titles:
$title = new \Imdb\Title("335266"); $rating = $title->rating(); $plotOutline = $title->plotoutline();
For Name search:
$imdb = new \Imdb\NameSearch(); $results = $imdb->search("Peter Fonda");
For Names:
$name = new \Imdb\Name("0000154"); $name = $name->name(); $nickname = $name->nickname();
For Calendar:
$calendar = new \Imdb\Calendar(); $releases = $calendar->comingSoon();
Installation
Download the latest version or latest git version and extract it to your webserver. Use one of the above methods to get some results
Get the files with one of:
- Composer Include the duck7000/imdb-graphql-php package.
- Git clone. Checkout the latest release tag
- [Zip/Tar download]
Requirements
- PHP >= works from 8.0 - 8.5
- PHP cURL extension
- PHP json extension
duck7000/imdb-graphql-php 适用场景与选型建议
duck7000/imdb-graphql-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 885 次下载、GitHub Stars 达 23, 最近一次更新时间为 2024 年 10 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「imdb」 「movie」 「graphql」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 duck7000/imdb-graphql-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 duck7000/imdb-graphql-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 duck7000/imdb-graphql-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
IMDB API that can fetch film data and search results
An example project using a multi layer feed forward neural network for text sentiment classification trained with 25,000 movie reviews from IMDB.
Library for parsing metadata information about movies and TV shows from Douban Movie
xMDB parser
PHP wrapper for TMDB (TheMovieDatabase) API v3. Supports two types of approaches, one modelled with repositories, models and factories. And the other by simple array access to RAW data from The Movie Database.
This is a fork of the package php-tmdb/laravel. Instead of waiting for the maintainer to update the php-tmdb/api package to reflect the latest changes from the API, I've decided to fix these. These packages are actively used for http://flixi.com, which means these we will be most likely maintaining
统计信息
- 总下载量: 885
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2024-10-23