denand/tvdb-v4-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

denand/tvdb-v4-client

最新稳定版本:v1.5.0

Composer 安装命令:

composer require denand/tvdb-v4-client

包简介

TVDB V4 API Client for PHP

README 文档

README

Latest Version on Packagist Total Downloads License

TVDB V4 Client for PHP/Laravel

A comprehensive PHP client for The TVDB V4 API, designed to work seamlessly with Laravel applications. This package provides easy access to The TVDB's extensive database of TV series, movies, and related metadata.

📚 Official Documentation

🚀 Features

  • Full TVDB V4 API Support - Access to all available endpoints
  • Laravel Integration - Seamless Laravel service provider and facade
  • Extended Data Support - Get comprehensive series, episode, and movie information
  • Translation Support - Multi-language content retrieval
  • Search Functionality - Powerful search capabilities across the database
  • Type and Status Support - Access to metadata types and statuses
  • Laravel 10 Compatible - Updated for the latest Laravel version

📦 Installation

Via Composer

You can install the package with Composer using Packagist:

composer require denand/tvdb-v4-client

Configuration

  1. Publish the configuration file:
php artisan vendor:publish --provider="DenAnd\TvdbV4Client\TvdbV4ClientServiceProvider"
  1. Configure your TVDB API credentials in config/tvdb-v4-client.php:
return [
    'api_key' => env('TVDB_API_KEY', ''),
    'api_pin' => env('TVDB_API_PIN', ''),
    // Add other configuration options as needed
];
  1. Add your TVDB API credentials to your .env file:
TVDB_API_KEY=your_api_key_here
TVDB_API_PIN=your_api_pin_here

🔧 Usage

Basic Usage

use DenAnd\TvdbV4Client\TvdbV4Client;

$tvdb = new TvdbV4Client();

// Get extended data for a TV series
$series = $tvdb->getSeries('269586');

// Get series translations
$translations = $tvdb->getSeriesTranslations('269586', 'eng');

// Get series with full data (translations + extended data)
$seriesFull = $tvdb->getSeriesFull('269586', 'eng');

// Search for series
$search = $tvdb->search('Brooklyn Nine-Nine');

// Search and get extended data
$seriesByName = $tvdb->getSeriesByName('Brooklyn Nine-Nine');

Laravel Facade Usage

use DenAnd\TvdbV4Client\Facades\TvdbV4Client;

// Using the facade
$series = TvdbV4Client::getSeries('269586');
$search = TvdbV4Client::search('Breaking Bad');

Available Methods

  • getSeries($id) - Get extended series data
  • getSeriesTranslations($id, $language) - Get series translations
  • getSeriesFull($id, $language) - Get series with translations and extended data
  • search($query) - Search for series, movies, or people
  • getSeriesByName($name) - Search and get extended data by name
  • getTypes() - Get available types
  • getStatuses() - Get available statuses

🧪 Testing

composer test

📋 Requirements

  • PHP 7.4 or higher
  • Laravel 8.0+ (for Laravel integration)
  • The TVDB API credentials

🔗 API Documentation & Resources

📄 Changelog

Please see CHANGELOG for more information about recent changes.

🤝 Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email denandteam@gmail.com instead of using the issue tracker.

📜 License

The MIT License (MIT). Please see License File for more information.

🙏 Attribution

When using this package, please ensure you comply with The TVDB's attribution requirements. Display the following attribution to end users:

"Metadata provided by TheTVDB. Please consider adding missing information or subscribing."

For more information about attribution requirements, visit The TVDB API Information page.

👥 Credits

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-04