-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathcaching.php
More file actions
28 lines (22 loc) · 652 Bytes
/
caching.php
File metadata and controls
28 lines (22 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* This file is part of the Tmdb PHP API created by Michael Roterman.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Tmdb
* @author Michael Roterman <michael@wtfz.net>
* @copyright (c) 2013, Michael Roterman
* @version 4.0.0
*/
use Tmdb\Client;
use Tmdb\Repository\MovieRepository;
require_once '../vendor/autoload.php';
require_once 'apikey.php';
/** @var Client $client **/
$client = require_once('setup-client-cache-psr6.php');
$repository = new MovieRepository($client);
$movie = $repository->load(19995);
var_dump($movie);
exit;