Comments (16)
@ChrisTERiS
Please Check /examples/movies/infoMovie.php
and /examples/tvshows/infoTVShow.php
i already created examples for Cast & Crew on both, Movies and TVShows.
@pixelead0 we should close this issue, because it is actually done.
from tmdb_v3-php-api-.
@asifagaria @isarjanfaza @TimTim74 @ChrisTERiS
I pushed a temporary fix for the problem on my fork here:
https://github.com/bogdanfinn/tmdb_v3-PHP-API-
The examples are working if you check out this version and add your TMDB Api Key in the configuration/default.php
file. Maybe you have to adjust the config, depending on the data you want to query. There is also a configuration/all.php
file.
I think this library is not actively maintained. And to be honest i currently have not enough time to look deeper into the problem and get it fixed with the namespacing. introduced a few commits before.
from tmdb_v3-php-api-.
Seems like this has something to do with the namespacing and composer.json stuff ...
Will look into it later and try to fix it.
@buibr do you have the same issue when opening the examples?
from tmdb_v3-php-api-.
hi
I also have a problem with what to do
from tmdb_v3-php-api-.
Fatal error: Class 'ApiBaseObject' not found in /public_html/tmdb/controller/classes/data/Movie.php on line 12
from tmdb_v3-php-api-.
I get the same problem. Even the examples give the same error:
Fatal error: Class 'ApiBaseObject' not found in /var/www/html/projects/tmdb-api/controller/classes/data/Movie.php on line 12
from tmdb_v3-php-api-.
Same fatal error (Class 'ApiBaseObject' not found) not only to Movie.php but to all.
And as it's already 8 full months since the first bug report, seems that nobody is interest to fix it.
If you've abandoned this (very promising) class, is more fair to remove it, respecting the time that someone waste for download, install, and testing it.
from tmdb_v3-php-api-.
and yeah the error has nothing to do with the class itself.
an important line was removed due to a merge conflict. this line imported the class. that was the actual error ;-)
from tmdb_v3-php-api-.
@bogdanfinn
I'm still getting error when I applied your new code. But maybe I need to double check the files again.
Before your post, I've added at the top of require:
require ("controller/classes/data/ApiBaseObject.php");
but then I was getting error:
Fatal error: Cannot declare class ApiBaseObject, because the name is already in use
from tmdb_v3-php-api-.
Ok, now it works :) Have did so many changes in the code trying to fix it. The best that I had succeeded to get is the example page but without submenus :)
I was so in rush that I post a micro project to Freelancer . com :)
from tmdb_v3-php-api-.
@bogdanfinn Are you getting custom (paid) examples coding of this class?
from tmdb_v3-php-api-.
@ChrisTERiS glad to read that it works now.
i used this library a long time ago as a base for a private project.
what examples do you need? maybe i could explain how to code it or add them to the repo if i find time.
from tmdb_v3-php-api-.
@ChrisTERiS glad to read that it works now.
i used this library a long time ago as a base for a private project.what examples do you need? maybe i could explain how to code it or add them to the repo if i find time.
I need an example which will do:
1.- Fetcth data for a Movie or TV Show and save them in a MySQL database
2.- Copy Poster, Backdrop and images to my site
3.- Fetch data for crew (actors) only and save them in database (checking for duplicates).
As you can see, maybe is not a big project, but also is not a project to ask it for free. I want to add it as part of my CMS script. Till now haven't decided if I'll release it for free (95% of my 50+ scripts are fee), if I'll release it as commercial. That's why I want to pay for your time.
In any case, I'm respectful to you for your fix.
from tmdb_v3-php-api-.
My solution was to this this repo: https://github.com/femotizo/tmdb_v3-PHP-API-. Maybe not the latest, but it does what I need perfectly.
from tmdb_v3-php-api-.
@ChrisTERiS
Sorry for the late reply. My Github did not show me any answers to this issue.
I need an example which will do:
1.- Fetcth data for a Movie or TV Show and save them in a MySQL database
2.- Copy Poster, Backdrop and images to my site
3.- Fetch data for crew (actors) only and save them in database (checking for duplicates).
- For this we already have examples in this repo i think. Except of the MySQL database part. Personally i would not want to implement examples for the persistence layer because this is a dependency and has nothing to do with this repository (in my opinion). This repository is just about receiving data not storing them in some database. Also it would highly depend on the question if you use plain SQL Statements or an ORM and so on ...
- Dont know why you need to copy the images and tbh i'm not sure if you actually are allowed to copy the images. But you can just store the URL to the images?
- Same as Answer to 1 i think. There are already examples for "Persons". On a Person you are able to receive the Roles (Movie or TVShow Roles). Nevertheless coming from a Movie or a TVShow you are able to call
getCast()
on it to receive a List of Person Objects.
from tmdb_v3-php-api-.
from tmdb_v3-php-api-.
Related Issues (20)
- How to get Movie/TV/Person search page ? HOT 2
- No ../tmdb-api.php file included, on this code HOT 1
- List of film genres HOT 11
- Empty youtube video problem HOT 5
- how to show movie certification HOT 3
- setAPIKey not working
- Trailer in TV Show HOT 3
- Num of episodes in seasons loop HOT 3
- episodes images not working HOT 1
- I cant get the backdrop HOT 1
- getImageURL not working
- Get Production (Aired) Year for TV Show
- How do I get the [character] each actor played in the movie??
- Auto suggest in search
- A missed quote in README.markdown
- imdb tv id get data not working
- this genre data
- Error Handler
- please insert RatedMovies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmdb_v3-php-api-.