PHP code example of rych / thumbnail-finder
1. Go to this page and download the library: Download rych/thumbnail-finder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rych / thumbnail-finder example snippets
$tf = new \Rych\ThumbnailFinder\ThumbnailFinder();
$thumbUrl = $tf->findThumbnail('http://www.imdb.com/title/tt0117500/');
// Outputs the image URL or NULL
// (though in this case you'll get a link to a movie poster for "The Rock").
var_dump($thumbUrl);