public function show($id) { $token = new \Tmdb\ApiToken('API_KEY'); $client = new \Tmdb\Client($token, ['secure' => false]); $person = $client->getPeopleApi()->getPerson($id, array('language' => 'fr')); $credits = $client->getPeopleApi()->getMovieCredits($id); return view('pages/director', ['person' => $person, 'credits' => $credits]); }
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $person = $client->getPeopleApi()->getPerson(33); var_dump($person);
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $credits = $client->getPeopleApi()->getMovieCredits(33); var_dump($credits);
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $latestMovies = $client->getPeopleApi()->getLatest(); var_dump($latestMovies);
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $taggedImages = $client->getPeopleApi()->getTaggedImages(287); var_dump($taggedImages);
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $popularMovies = $client->getPeopleApi()->getPopular(); var_dump($popularMovies);
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $credits = $client->getPeopleApi()->getCombinedCredits(33); var_dump($credits);
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $externalIds = $client->getPeopleApi()->getExternalIds(33); var_dump($externalIds);
<?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 <*****@*****.**> * @copyright (c) 2013, Michael Roterman * @version 0.0.1 */ require_once '../../../vendor/autoload.php'; require_once '../../../apikey.php'; $token = new \Tmdb\ApiToken(TMDB_API_KEY); $client = new \Tmdb\Client($token); $person = $client->getPeopleApi()->getTvCredits(33); var_dump($person);