echo '<img src="' . $tmdb->getImageURL('w185') . $movie->getPoster() . '"/></li>'; // 3. Now Playing Movies echo '<li><a id="nowPlayingMovies"><h3>Now Playing Movies</h3></a><ul>'; $movies = $tmdb->nowPlayingMovies(); foreach ($movies as $movie) { echo '<li>' . $movie->getTitle() . ' (<a href="https://www.themoviedb.org/movie/' . $movie->getID() . '">' . $movie->getID() . '</a>)</li>'; } echo '</ul></li><hr>'; // 4. Latest Movie echo '<li><a id="latestMovie"><h3>Latest Movie</h3></a>'; $movie = $tmdb->getLatestMovie(); echo '- ' . $movie->getTitle() . ' (<a href="https://www.themoviedb.org/movie/' . $movie->getID() . '">' . $movie->getID() . '</a>)<br>'; echo '</li><hr>'; // 5. Search Collection echo '<li><a id="searchCollection"><h3>Search Collection</h3></a><ul>'; $collections = $tmdb->searchCollection("the hobbit"); foreach ($collections as $collection) { echo '<li>' . $collection->getName() . ' (<a href="https://www.themoviedb.org/collection/' . $collection->getID() . '">' . $collection->getID() . '</a>)</li>'; } echo '</ul></li><hr>'; // 6. Full Collection Info echo '<li><a id="collectionInfo"><h3>Full Collection Info</h3></a>'; $collection = $tmdb->getCollection(121938); echo 'Now the <b>$collection</b> var got all the data, check the <a href="http://code.octal.es/php/tmdb-api/class-Collection.html">documentation</a> for the complete list of methods.<br><br>'; echo '<b>' . $collection->getName() . '</b><ul>'; echo ' <li>ID:' . $collection->getID() . '</li>'; echo ' <li>Overview:' . $collection->getOverview() . '</li>'; echo ' <li>Movies<ul>'; $movies = $collection->getMovies(); foreach ($movies as $movie) { echo '<li>' . $movie->getTitle() . ' (<a href="https://www.themoviedb.org/movie/' . $movie->getID() . '">' . $movie->getID() . '</a>)</li>';