PHP code example of denand / tvdb-v4-client

1. Go to this page and download the library: Download denand/tvdb-v4-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

denand / tvdb-v4-client example snippets


return [
    'api_key' => env('TVDB_API_KEY', ''),
    'api_pin' => env('TVDB_API_PIN', ''),
    // Add other configuration options as needed
];

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');

use DenAnd\TvdbV4Client\Facades\TvdbV4Client;

// Using the facade
$series = TvdbV4Client::getSeries('269586');
$search = TvdbV4Client::search('Breaking Bad');
bash
php artisan vendor:publish --provider="DenAnd\TvdbV4Client\TvdbV4ClientServiceProvider"