chrizus/radarr
Composer 安装命令:
composer require chrizus/radarr
包简介
PHP Radarr API Wrapper
README 文档
README
Warning
This package is forked from digitalhigh/radarr and adapted for my personal preference and use. I do not recommend using this package in your project, but use the original project digitalhigh/radarr
Radarr
PHP Wrapper for Radarr https://radarr.video/
Here is the Radarr API Documentation that this package implements: https://github.com/Radarr/Radarr/wiki/API
Installation
composer require chrizus/radarr
Example Usage
use BergPlaza\Radarr\Radarr;
public function addMovie() { $radarr = new Radarr('http://127.0.0.1:8989', 'cf7544f71b6c4efcbb84b49011fc965c'); // URL and API Key return $radarr->postMovie([ 'tmdbId' => 121856, 'title' => 'Assassin's Creed', 'qualityProfileId' => 3, // HD-720p 'rootFolderPath' => '/volume1/Plex/Movies' ]); }
HTTP Auth
If your site requires HTTP Auth username and password you may supply it like this. Please note, if you are using HTTP Auth without SSL you are sending your username and password unprotected across the internet.
$radarr = new Radarr('http://127.0.0.1:8989', 'cf7544f71b6c4efcbb84b49011fc965c', 'my-username', 'my-password');
Output
{
"title": "Assassin's Creed",
"sortTitle": "assassins creed",
"sizeOnDisk": 0,
"status": "released",
"overview": "Lynch discovers he is a descendant of the secret Assassins society through unlocked genetic memories that allow him to relive the adventures of his ancestor, Aguilar, in 15th Century Spain. After gaining incredible knowledge and skills he’s poised to take on the oppressive Knights Templar in the present day.",
"inCinemas": "2016-12-21T00:00:00Z",
"images": [
{
"coverType": "poster",
"url": "/radarr/MediaCover/1/poster.jpg?lastWrite=636200219330000000"
},
{
"coverType": "banner",
"url": "/radarr/MediaCover/1/banner.jpg?lastWrite=636200219340000000"
}
],
"website": "https://www.ubisoft.com/en-US/",
"downloaded": false,
"year": 2016,
"hasFile": false,
"youTubeTrailerId": "pgALJgMjXN4",
"studio": "20th Century Fox",
"path": "/path/to/Assassin's Creed (2016)",
"profileId": 6,
"monitored": true,
"minimumAvailability": "preDb",
"runtime": 115,
"lastInfoSync": "2017-01-23T22:05:32.365337Z",
"cleanTitle": "assassinscreed",
"imdbId": "tt2094766",
"tmdbId": 121856,
"titleSlug": "assassins-creed-121856",
"genres": [
"Action",
"Adventure",
"Fantasy",
"Science Fiction"
],
"tags": [],
"added": "2017-01-14T20:18:52.938244Z",
"ratings": {
"votes": 711,
"value": 5.2
},
"alternativeTitles": [
"Assassin's Creed: The IMAX Experience"
],
"qualityProfileId": 6,
"id": 1
}
For available methods reference included Radarr::class
Note: when posting data with key => value pairs, keys are case-sensitive.
chrizus/radarr 适用场景与选型建议
chrizus/radarr 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 10 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 chrizus/radarr 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chrizus/radarr 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-05