denand/tvdb-v4-client

TVDB V4 API Client for PHP

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/denand/tvdb-v4-client

v1.5.0 2025-08-05 09:25 UTC

This package is not auto-updated.

Last update: 2026-01-06 11:43:18 UTC


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