pxgamer / yts
v1.2.0
2019-03-08 12:28 UTC
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.3
- tightenco/collect: ^5.5
Requires (Dev)
- phpunit/phpunit: ^7.0 || ^8.0
- squizlabs/php_codesniffer: ^3.1
This package is auto-updated.
Last update: 2021-05-07 08:54:41 UTC
README
该项目已重命名,请参阅
owenvoke/yts
。
YTS API 的完整包装器。
关于 YTS
YIFY 种子或 YTS 是一个对等发布组,以通过 BitTorrent 提供大量电影的免费下载而闻名。YIFY 发布的特点是高清视频质量,文件大小小,吸引了众多下载者。
安装
通过 Composer
$ composer require pxgamer/yts
用法
列出电影
返回包含电影实例的 Collection 实例。
Movies::list([ 'quality' => Movies::QUALITY_ALL, // A quality constant 'query_term' => 0, // A query string, or 0 to ignore 'page' => 1, // An integer page number 'minimum_rating' => 0, // The minimum movie rating 'genre' => '', // A string containing the genre 'sort_by' => 'date-added', // The sort-by order 'order_by' => 'desc', // The direction to order by 'with_rt_ratings' => false, // Returns the list with Rotten Tomatoes ratings ]);
电影详情
返回一个 Movie 实例。
Movies::details([ 'movie_id' => null, // The ID of the movie to retrieve 'with_images' => false, // Return with image URLs 'with_cast' => false, // Return with information about the cast ]);
电影推荐
返回包含 0 到 4 个 Movie 实例的 Collection 实例。
Movies::suggestions([ 'movie_id' => null, // The ID of the movie to retrieve suggestions for ]);
变更日志
有关最近更改的更多信息,请参阅 CHANGELOG。
测试
$ composer test
贡献
请参阅 CONTRIBUTING 和 CODE_OF_CONDUCT 以获取详细信息。
安全
如果您发现任何与安全相关的问题,请通过电子邮件 security@pxgamer.xyz 而不是使用问题跟踪器。
鸣谢
许可证
MIT 许可证(MIT)。有关更多信息,请参阅 许可证文件。