Download the PHP package codebuglab/laravel-tmdb without Composer
On this page you can find all versions of the php package codebuglab/laravel-tmdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codebuglab/laravel-tmdb
More information about codebuglab/laravel-tmdb
Files in codebuglab/laravel-tmdb
Package laravel-tmdb
Short Description Simple integration with TMDB ( The Movie Database ) API to retrieve their data.
License MIT
Informations about the package laravel-tmdb
⚡⚡⚡ Laravel Tmdb
Simple integration with TMDB ( The Movie Database ) API to retrieve their data.
Table of contents
- ⚡⚡⚡ Laravel Tmdb
- Table of contents
- Setup
- Installation
- Publish
- Instructions
- Certifications
- Get Movie Certifications
- Get TV Certifications
- Changes
- Get Movie Change List
- Get TV Change List
- Get Person Change List
- Collections
- Get Details
- Get Images
- Get Transactions
- Companies
- Get Details
- Get Alternative Names
- Get Images
- Configuration
- Get API Configuration
- Get Countries
- Get Jobs
- Get Languages
- Get Primary Translations
- Get Timezones
- Credits
- Get Details
- Discover
- Movie Discover
- TV Discover
- Genres
- Get Movie List
- Get TV List
- Lists
- Get Details
- Check Item Status
- Movies
- Get Details
- Get Alternative Titles
- Get Changes
- Get Credits
- Get External IDs
- Get Images
- Get Keywords
- Get Lists
- Get Recommendations
- Get Release Dates
- Get Reviews
- Get Similar Movies
- Get Translations
- Get Videos
- Get Watch Provider
- Get Latest
- Get Now Playing
- Get Popular
- Get Top Rated
- Get Upcoming
- Networks
- Get Details
- Get Alternative Names
- Get Images
- Trending
- Get Trending
- People
- Get Details
- Get Changes
- Get Movie Credits
- Get TV Credits
- Get Combined Credits
- Get External IDs
- Get Images
- Get Tagged Images
- Get Translations
- Get Latest
- Get Popular
- Get Watch Providers
- Reviews
- Get Details
- Search
- Search Companies
- Search Collections
- Search Keywords
- Search Movies
- multi Search
- Search People
- Search TV Show
- TV
- Get Details
- Get Aggregate Credits
- Get Alternative Names
- Get Changes
- Get Content Ratings
- Get Credits
- Get Episode Groups
- Get External IDs
- Get Images
- Get Keywords
- Get Recommendations
- Get Reviews
- Get Screened Theatrically
- Get Similar TV Shows
- Get Translations
- Get Videos
- Get latest
- Get TV Airing Today
- Get On The Air
- Get Popular
- Get Top Rated
- TV Seasons
- Get Details
- Get Aggregate Credits
- Get Changes
- Get Credits
- Get External IDs
- Get Images
- Get Transactions
- Get Videos
- TV Episode
- Get Details
- Get Changes
- Get Credits
- Get External IDs
- Get Images
- Get Transactions
- Get Videos
- Watch Providers
- Get Available Regions
- Get Movie Providers
- Get TV Providers
- Options
- Page
- Append To Response
- Query
- Testing
- License
Setup
Installation
To install this package through composer run the following command in the terminal
Publish
You have to publish config file with this artisan command:
- File
tmdb.php
will be publish inconfig
folder after that. - Then you have to put your tmdb api key in your
env
file like thisTMDB_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
. - If the returned data from the API should be in another language, set the TMDB_LANGUAGE key in your
env
, eg. like this:TMDB_LANGUAGE=da
.
Instructions
- You can use tmdb api and get information your want, first take a quick look at official api page.
-
For all next API requests you have to use Tmdb facade
- Every request have it's own information link, you can know required parameters, returned array, different type of responses and optional query string and we take about this in options section
Certifications
Get Movie Certifications
-
For more information.
Get TV Certifications
- For more information.
Changes
Get Movie Change List
-
For more information.
Get TV Change List
-
For more information.
Get Person Change List
- For more information.
Collections
Get Details
-
For more information.
Get Images
-
For more information.
Get Transactions
- For more information.
Companies
Get Details
-
For more information.
Get Alternative Names
-
For more information.
Get Images
- For more information.
Configuration
Get API Configuration
-
For more information.
Get Countries
-
For more information.
Get Jobs
-
For more information.
Get Languages
-
For more information.
Get Primary Translations
-
For more information.
Get Timezones
- For more information.
Credits
Get Details
- For more information.
Discover
Movie Discover
-
For more information.
TV Discover
- For more information.
Genres
Get Movie List
-
For more information.
Get TV List
- For more information.
Lists
Get Details
-
For more information.
Check Item Status
- For more information.
Movies
Get Details
-
For more information.
Get Alternative Titles
-
For more information.
Get Changes
-
For more information.
Get Credits
-
For more information.
Get External IDs
-
For more information.
Get Images
-
For more information.
Get Keywords
-
For more information.
Get Lists
-
For more information.
Get Recommendations
-
For more information.
Get Release Dates
-
For more information.
Get Reviews
-
For more information.
Get Similar Movies
-
For more information.
Get Translations
-
For more information.
Get Videos
-
For more information.
Get Watch Provider
-
For more information.
Get Latest
-
For more information.
Get Now Playing
-
For more information.
Get Popular
-
For more information.
Get Top Rated
- For more information.
Get Upcoming
- For more information.
Networks
Get Details
-
For more information.
Get Alternative Names
-
For more information.
Get Images
- For more information.
Trending
Get Trending
- For more information.
People
Get Details
-
For more information.
Get Changes
-
For more information.
Get Movie Credits
-
For more information.
Get TV Credits
-
For more information.
Get Combined Credits
-
For more information.
Get External IDs
-
For more information.
Get Images
-
For more information.
Get Tagged Images
-
For more information.
Get Translations
-
For more information.
Get Latest
-
For more information.
Get Popular
-
For more information.
Get Watch Providers
- For more information.
Reviews
Get Details
- For more information.
Search
- Query option is required for this query and you put the search parameter instead of
$query
variable. -
For more Information
Search Companies
-
For more information.
Search Collections
-
For more information.
Search Keywords
-
For more information.
Search Movies
-
For more information.
multi Search
-
For more information.
Search People
-
For more information.
Search TV Show
- For more information.
TV
Get Details
-
For more information.
Get Aggregate Credits
-
For more information.
Get Alternative Names
-
For more information.
Get Changes
-
For more information.
Get Content Ratings
-
For more information.
Get Credits
-
For more information.
Get Episode Groups
-
For more information.
Get External IDs
- For more information.
Get Images
-
For more information.
Get Keywords
-
For more information.
Get Recommendations
-
For more information.
Get Reviews
-
For more information.
Get Screened Theatrically
- For more information.
Get Similar TV Shows
-
For more information.
Get Translations
- For more information.
Get Videos
-
For more information.
Get latest
-
For more information.
Get TV Airing Today
-
For more information.
Get On The Air
-
For more information.
Get Popular
-
For more information.
Get Top Rated
- For more information.
TV Seasons
Get Details
-
For more information.
Get Aggregate Credits
-
For more information.
Get Changes
-
For more information.
Get Credits
-
For more information.
Get External IDs
-
For more information.
Get Images
-
For more information.
Get Transactions
-
For more information.
Get Videos
- For more information.
TV Episode
Get Details
-
For more information.
Get Changes
-
For more information.
Get Credits
-
For more information.
Get External IDs
-
For more information.
Get Images
-
For more information.
Get Transactions
-
For more information.
Get Videos
- For more information.
Watch Providers
Get Available Regions
-
For more information.
Get Movie Providers
-
For more information.
Get TV Providers
- For more information.
Options
- tmdb api provides some options in some requests to provide more flexibility during request, and we add some of them here.
- You will find supported options with explanation of every option we have in Query String section in every information page Like the one here and as you can see languages, page, and region supported by tmdb.
- We don't support all options yet but will add more by time.
- You have to read the of tmdb carefully to avoid using unsupported option.
- Here is some options which supported in this packages with explanation.
Page
- If you want to get most popular movies from tmdb api you will get only 20 records will you can get about 800 record so instead or returning the whole records they give you only first 20 records and you can get the next 20 by using page option.
- So instead of using the request like that
and that will return the first page, you can specify the page you wanted to get for example if you want to get second page you will write the request like that.
Append To Response
- The option equivalent of query parameter append_to_response, for more Information
- This option can take multiple parameters like videos, posters and casts.
- For example you can append more information about movie casts buy using this query.
Query
- This option used when you want to use tmdb search.
- For example if you want to search for tv show you have to get it by this way.
where $query
is a string you want to search for and it will be a tv show in this example.
Testing
To run test use this command vendor/bin/phpunit
License
This package is a free software distributed under the terms of the MIT license.