sauvank / api-tmdb-php
Simple tools for get data from tmdb Api.
Installs: 68
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- ext-curl: *
- ext-json: *
- ext-memcached: *
- phpunit/phpunit: ^9.2
README
Required :
- PHP >= 7.4
- PHP ext-curl
- PHP ext-json
- PHP ext-memcached
- API The movie database
Run php unit tests (in cli)
create a file : tests/apiKeyTmdb.txt
and put inside the API key and run in CLI :
vendor/bin/phpunit tests
or
./run_test.sh
Example integration
$api = new \ApiTmdb\ApiTmdb('YOUR_API_KEY'); $api->getMovieById(550);
DOC
For get the doc, open 'doc/index.html'