| Recommend this page to a friend! | 
|  Download | 
| Info | Example |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2024-12-11 (6 months ago)  | Not enough user ratings | Total: 8 | All time:  11,514 This week: 22  | |||||
| Version | License | PHP version | Categories | |||
| the-movie-database-s 1.0 | The PHP License | 5 | PHP 5, Web services, Video | 
| Description | Author | |
| This package can retrieve movie information with the TMDB.com API. | 
| 
<?php | 
An api service for tmdb.com
To install this package tou can use composer:
composer require slvler/tmdb
first step is to start client client with required url, version, api key
$option['base_url'] = 'https://api.themoviedb.org/3/'
$option['api_key'] = 'xxxx'
$option['version'] = '3'
$client = new Client($option);
- You need to make a request to the tmdb service with the service point we created.
$tmdb = new Tmdb($client);
- Then you can send a request like this to bring the information of the movie we want.
$tmdb->movie("550");
- You can it to fetch player information.
$tmdb->people("13");
- to search on the specified keyword
$tmdb->keyword("550");
- to search in the specified condition
$tmdb->network("550");
- You can it to search in specified situations.
$tmdb->review("58aa82f09251416f92006a3a");
- You want this service when you want a TV program.
$tmdb->tv("111");
-  movies with collection
$tmdb->collection("10");
### Testing
vendor\bin\phpunit
## Credits
- slvler
## License
The MIT License (MIT). Please see License File for more information.
|  Files (11) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  .github (1 directory) | ||||
|  example (1 file) | ||||
|  src (3 files) | ||||
|  tests (1 file) | ||||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE.md | Lic. | License text | ||
|    phpunit.xml | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (11) | / | .github | / | workflows | 
|  Files (11) | / | src | 
| File | Role | Description | 
|---|---|---|
|  Client.php | Class | Class source | 
|  ClientInterface.php | Class | Class source | 
|  Tmdb.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
|  | the-movie-database-s-2024-12-11.zip 5KB | 
|  | the-movie-database-s-2024-12-11.tar.gz 3KB | 
|  | Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.