承接 detain/phlix-plugin-omdb 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

detain/phlix-plugin-omdb

Composer 安装命令:

composer require detain/phlix-plugin-omdb

包简介

OMDb metadata provider for Phlix — IMDb/RT/Metascore ratings aggregation for movies and TV.

README 文档

README

tests

OMDb metadata provider for Phlix — IMDb/RT/Metascore ratings aggregation for movies and TV.

Queries the OMDb API to enrich Phlix media items with IMDb ID, Rotten Tomatoes critic rating, and Metascore ratings. Ratings are stored in the metadata_ratings table and feed into Phlix's rating aggregation pipeline.

Features

  • IMDb ID resolution — search by title + year to resolve the canonical IMDb ID
  • Multi-source ratings — captures IMDb, Rotten Tomatoes, and Metascore scores
  • Non-blocking HTTP — async HTTP client compatible with Workerman's event loop
  • Rate limiting — configurable request throttling to respect OMDb API limits
  • Response caching — configurable in-memory cache TTL to reduce API calls
  • TLS verification toggle — option to disable SSL verification for self-hosted proxies
  • Ratings ingestion — writes ratings directly to metadata_ratings for aggregation

Install

The plugin is unsigned by design — install via the Phlix admin UI:

  1. Log in to your Phlix server as an admin user (users.is_admin = 1).

  2. Browse to /admin/plugins.

  3. Paste this URL into the Install from URL form and submit:

    https://raw.githubusercontent.com/detain/phlix-plugin-omdb/main/plugin.json
    
  4. The server downloads the manifest, validates it, runs composer install --no-dev, and stores a row in the plugins table. The plugin lands disabled by default.

  5. Flip the toggle in the table to enable it.

  6. Enter your OMDb API key in the plugin settings (get one at http://www.omdbapi.com/apikey.aspx).

Configuration

Setting Type Default Description
enabled boolean false Enable the OMDb metadata provider
api_key string null OMDb API key (get at http://www.omdbapi.com/apikey.aspx)
use_ssl_verification boolean true Verify TLS certificates
cache_ttl_seconds integer 86400 Cache TTL in seconds (default: 24h)

What it does

When enabled, the plugin registers as a MetadataSourceInterface provider. When the Phlix metadata manager requests details for a media item:

  1. The plugin receives the search query (title + optional year)
  2. It queries OMDb's search endpoint to find matching entries
  3. It fetches full details including ratings for the selected IMDb ID
  4. Ratings are written to metadata_ratings and feed into the rating aggregation

Supported media types

  • movie
  • series

Running tests locally

composer install
vendor/bin/phpunit
vendor/bin/phpstan analyse src --level=9
vendor/bin/phpcs src --standard=PSR12

License

MIT — see LICENSE.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固