vfalies / tmdb Goto Github PK
View Code? Open in Web Editor NEWPHP Wrapper for TMDB (The Movie DataBase) API V3
Home Page: https://vfac.fr/projects/tmdb
License: MIT License
PHP Wrapper for TMDB (The Movie DataBase) API V3
Home Page: https://vfac.fr/projects/tmdb
License: MIT License
Great work on the foundations of this API wrapper. Would you accept pull requests to flush out the missing API endpoints?
Also, how would you like to see the Daily File Exports implemented? Since there's no authentication required for them and they're returned as gzipped non-standard json (json objects separated by newlines) they'd need their own parsing.
It seems there's not enough documentation on how to fetch media? I see poster_path
inside the array of $movies->current()
and the example has media helper set like this:
$media = new Media($tmdb);
$url = $media->getPosterUrl('/AbJBXaVPrdXROwb8KmgWUPU2XJX.jpg');
What is that jpg supposed to be in the documentation? How should I combine the find based on IMDb and this "media helper"? How to get poster or backdrop URL?
Sorry that I'm not familiar of this types of wrappers. $movies->current()->getTitle()
and things like that are easy here but fetching media is a mystery here.
Using the following code, I'm unable to retrieve results from TMdb.
$movie = [];
$tmdbMovieData = [];
$item = new Item($this->tmdb);
$tmdbMovieData = $item->getMovie(11);
$movie['cast'] = $tmdbMovieData->getCast();
$movie['crew'] = $tmdbMovieData->getCrew();
$movie['trailers'] = $tmdbMovieData->getVideos();
var_dump($movie);
If I look at the constructor for Items\MovieVideos, I can see results being returned if I run
var_dump($this->data->results);
This is related to #37. I'm not sure if I'm doing something incorrectly, or if there are a problem with these methods.
I'd like to discuss and hear your ideas for how to best implement the changes endpoint for specific items.
getPosterChanges()
that returns either a change or null, or do we just return an array of changes consisting of "poster" => "newValue"
?I would love to hear your thoughts and ideas on this before beginning to implement it.
Problem 1
- vfalies/tmdb[1.8.2.x-dev, ..., 1.8.3] require guzzlehttp/guzzle ~6.3 -> found guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev] but it confl
icts with your root composer.json require (^7.0.1).
- vfalies/tmdb[1.8, ..., 1.8.1] require guzzlehttp/guzzle 6.3.3 -> found guzzlehttp/guzzle[6.3.3] but it conflicts with your root com
poser.json require (^7.0.1).
- vfalies/tmdb 1.8.2 requires guzzlehttp/guzzle ~6.3.3 -> found guzzlehttp/guzzle[6.3.3] but it conflicts with your root composer.jso
n require (^7.0.1).
- Root composer.json requires vfalies/tmdb ^1.8 -> satisfiable by vfalies/tmdb[1.8, ..., 1.8.3].
My composer.json
:
"require": {
"php": "^7.3",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.0"
},
https://developers.themoviedb.org/3/find/find-by-id
How can I use this API?
I can add use the following code to get TMdb to return videos to me, but I have no way to access them using the Items\Movie class.
$item->getMovie($movie['id'], ['append_to_response' => 'videos'])
TMdb recently implemented Cloudfront in front of the API, and is refusing GET requests that contain a post body.
In Tmdb.php line 177:
json_decode() expects parameter 1 to be string, object given
Hi. I'm trying to use
` `` foreach ($infos->getBackdrops() as $backdrops) {
var_dump($backdrops);
}```
for
$item = new Item($tmdb); $infos = $item->getMovie(35031, array('language' => 'en-EN'));
but it shows blank. Any help?
I'm working on adding PHP 7.4 and PHP 8 support.
The only change needed for PHP 7.4 was upgrading PHPUnit and refactoring some tests to avoid the use of deprecated PHPUnit features.
For PHP 8 support we will need to refactor some of the wrapper code itself.
Are there any PHP versions that we can drop support for? PHP 7.1 has been EOL for over a year and PHP 7.2 for nearly 6 months. PHPUnit 7 doesn't support PHP > 7.3 and is also EOL.
I think dropping support for those two PHP versions would greatly benefit us and simplify the process of adding support for newer PHP versions. What are your thoughts?
Is there any way to get the cast of a tv show?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.