PHP code example of codebuglab / laravel-tmdb
1. Go to this page and download the library: Download codebuglab/laravel-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/ */
codebuglab / laravel-tmdb example snippets
use CodeBugLab\Tmdb\Facades\Tmdb;
$tmdb = Tmdb::certifications()->movieCertifications()->get(); // return array
$tmdb = Tmdb::certifications()->tvCertifications()->get(); // return array
$tmdb = Tmdb::changes()->movieChangeList()->get(); // return array
$tmdb = Tmdb::changes()->tvChangeList()->get(); // return array
$tmdb = Tmdb::changes()->personChangeList()->get(); // return array
$tmdb = Tmdb::collections()->details($collectionId)->get(); // return array
$tmdb = Tmdb::collections()->images($collectionId)->get(); // return array
$tmdb = Tmdb::collections()->transactions($collectionId)->get(); // return array
$tmdb = Tmdb::companies()->details($collectionId)->get(); // return array
$tmdb = Tmdb::companies()->alternativeNames($collectionId)->get(); // return array
$tmdb = Tmdb::companies()->images($collectionId)->get(); // return array
$tmdb = Tmdb::configuration()->apiConfiguration()->get(); // return array
$tmdb = Tmdb::configuration()->countries()->get(); // return array
$tmdb = Tmdb::configuration()->jobs()->get(); // return array
$tmdb = Tmdb::configuration()->languages()->get(); // return array
$tmdb = Tmdb::configuration()->primaryTranslations()->get(); // return array
$tmdb = Tmdb::configuration()->timezones()->get(); // return array
$tmdb = Tmdb::credits()->details($creditId)->get(); // return array
$tmdb = Tmdb::discover()->movieDiscover()->get(); // return array
$tmdb = Tmdb::discover()->tvDiscover()->get(); // return array
$tmdb = Tmdb::genres()->movieList()->get(); // return array
$tmdb = Tmdb::genres()->tvList()->get(); // return array
$tmdb = Tmdb::lists()->details($listId)->get(); // return array
$tmdb = Tmdb::lists()->itemStatus($listId)->get(); // return array
$tmdb = Tmdb::movies()->details($movieId)->get(); // return array
$tmdb = Tmdb::movies()->alternativeTitles($movieId)->get(); // return array
$tmdb = Tmdb::movies()->changes($movieId)->get(); // return array
$tmdb = Tmdb::movies()->credits($movieId)->get(); // return array
$tmdb = Tmdb::movies()->externalIds($movieId)->get(); // return array
$tmdb = Tmdb::movies()->images($movieId)->get(); // return array
$tmdb = Tmdb::movies()->keywords($movieId)->get(); // return array
$tmdb = Tmdb::movies()->lists($movieId)->get(); // return array
$tmdb = Tmdb::movies()->recommendations($movieId)->get(); // return array
$tmdb = Tmdb::movies()->releaseDates($movieId)->get(); // return array
$tmdb = Tmdb::movies()->reviews($movieId)->get(); // return array
$tmdb = Tmdb::movies()->similar($movieId)->get(); // return array
$tmdb = Tmdb::movies()->translations($movieId)->get(); // return array
$tmdb = Tmdb::movies()->videos($movieId)->get(); // return array
$tmdb = Tmdb::movies()->watchProviders($movieId)->get(); // return array
$tmdb = Tmdb::movies()->latest()->get(); // return array
$tmdb = Tmdb::movies()->nowPlaying()->get(); // return array
$tmdb = Tmdb::movies()->popular()->get(); // return array
$tmdb = Tmdb::movies()->topRated()->get(); // return array
$tmdb = Tmdb::movies()->upcoming()->get(); // return array
$tmdb = Tmdb::networks()->details($networkId)->get(); // return array
$tmdb = Tmdb::networks()->alternativeNames($networkId)->get(); // return array
$tmdb = Tmdb::networks()->images($networkId)->get(); // return array
$tmdb = Tmdb::trending()->trending($mediaType, $timeWindow)->get(); // return array
$tmdb = Tmdb::people()->details($personId)->get(); // return array
$tmdb = Tmdb::people()->changes($personId)->get(); // return array
$tmdb = Tmdb::people()->movieCredits($personId)->get(); // return array
$tmdb = Tmdb::people()->tvCredits($personId)->get(); // return array
$tmdb = Tmdb::people()->combinedCredits($personId)->get(); // return array
$tmdb = Tmdb::people()->externalIds($personId)->get(); // return array
$tmdb = Tmdb::people()->images($personId)->get(); // return array
$tmdb = Tmdb::people()->taggedImages($personId)->get(); // return array
$tmdb = Tmdb::people()->translations($personId)->get(); // return array
$tmdb = Tmdb::people()->latest()->get(); // return array
$tmdb = Tmdb::people()->popular()->get(); // return array
$tmdb = Tmdb::people()->popular()->get(); // return array
$tmdb = Tmdb::reviews()->details($reviewId)->get(); // return array
$tmdb = Tmdb::search()->companies()->query($query)->get(); // return array
$tmdb = Tmdb::search()->collections()->query($query)->get(); // return array
$tmdb = Tmdb::search()->keywords()->query($query)->get(); // return array
$tmdb = Tmdb::search()->movies()->query($query)->get(); // return array
$tmdb = Tmdb::search()->multi()->query($query)->get(); // return array
$tmdb = Tmdb::search()->people()->query($query)->get(); // return array
$tmdb = Tmdb::search()->tvShows()->query($query)->get(); // return array
$tmdb = Tmdb::tv()->details($tvId)->get(); // return array
$tmdb = Tmdb::tv()->aggregateCredits($tvId)->get(); // return array
$tmdb = Tmdb::tv()->alternativeTitles($tvId)->get(); // return array
$tmdb = Tmdb::tv()->changes($tvId)->get(); // return array
$tmdb = Tmdb::tv()->contentRatings($tvId)->get(); // return array
$tmdb = Tmdb::tv()->credits($tvId)->get(); // return array
$tmdb = Tmdb::tv()->episodeGroups($tvId)->get(); // return array
$tmdb = Tmdb::tv()->externalIds($tvId)->get(); // return array
$tmdb = Tmdb::tv()->images($tvId)->get(); // return array
$tmdb = Tmdb::tv()->keywords($tvId)->get(); // return array
$tmdb = Tmdb::tv()->recommendations($tvId)->get(); // return array
$tmdb = Tmdb::tv()->reviews($tvId)->get(); // return array
$tmdb = Tmdb::tv()->screenedTheatrically($tvId)->get(); // return array
$tmdb = Tmdb::tv()->similar($tvId)->get(); // return array
$tmdb = Tmdb::tv()->translations($tvId)->get(); // return array
$tmdb = Tmdb::tv()->watchProviders($tvId)->get(); // return array
$tmdb = Tmdb::tv()->latest()->get(); // return array
$tmdb = Tmdb::tv()->airingToday()->get(); // return array
$tmdb = Tmdb::tv()->onTheAir()->get(); // return array
$tmdb = Tmdb::tv()->popular()->get(); // return array
$tmdb = Tmdb::tv()->topRated()->get(); // return array
$tmdb = Tmdb::tvSeasons()->details($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvSeasons()->aggregateCredits($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvSeasons()->changes($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvSeasons()->credits($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvSeasons()->externalIds($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvSeasons()->images($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvSeasons()->transactions($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvSeasons()->videos($tvId, $seasonNumber)->get(); // return array
$tmdb = Tmdb::tvEpisodes()->details($tvId, $seasonNumber, $episodeNumber)->get(); // return array
$tmdb = Tmdb::tvEpisodes()->changes($tvId, $seasonNumber, $episodeNumber)->get(); // return array
bash
php artisan vendor:publish --provider="CodeBugLab\Tmdb\TmdbServiceProvider"
php
$tmdb = Tmdb::tvEpisodes()->credits($episodeNumber)->get(); // return array
php
$tmdb = Tmdb::tvEpisodes()->externalIds($tvId, $seasonNumber, $episodeNumber)->get(); // return array
php
$tmdb = Tmdb::tvEpisodes()->images($tvId, $seasonNumber, $episodeNumber)->get(); // return array
php
$tmdb = Tmdb::tvEpisodes()->transactions($tvId, $seasonNumber, $episodeNumber)->get(); // return array
php
$tmdb = Tmdb::tvEpisodes()->videos($tvId, $seasonNumber, $episodeNumber)->get(); // return array
php
$tmdb = Tmdb::watchProviders()->availableRegions()->get(); // return array
php
$tmdb = Tmdb::watchProviders()->movieProviders()->get(); // return array
php
$tmdb = Tmdb::watchProviders()->tvProviders()->get(); // return array
php
$tmdb = Tmdb::movies()->popular()->get(); // return array
php
$tmdb = Tmdb::movies()->popular()->page(2)->get(); // return array
php
$tmdb = Tmdb::movies()->details($movieId)->appendToResponse(['casts'])->get(); // return array
php
$tmdb = Tmdb::search()->tvShows()->query($query)->get();