PHP code example of slvler / tmdb

1. Go to this page and download the library: Download slvler/tmdb 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/ */

    

slvler / tmdb example snippets


use Slvler\Tmdb\Tmdb;
use Slvler\Tmdb\Factory;

$request = Tmdb::factory()
    ->withBaseUrl('https://api.themoviedb.org/3')
    ->withHttpHeader('Authorization', 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
    ->withPath('movie/11')
    ->make();