Wallogit.com
2017 © Pedro Peláez
This function will return the website logo url of a given website url
Website Logo Scraper, (*1)
composer require driessenstijn/waper/
Waper will allow you to crawl any given website to find out what logo it uses. It's simple and it should always return a logo for you., (*2)
The logic is simple and straightforward. It will do the following checks in sequence to find a logo, (*3)
Please use this package to add a logo to a given website when displaying or whenever you want to assist a user to add a logo for him on basis of a given website. Do note that the last step is to crawl also Google for a logo file. Google will block excessive attempts on the Google website so please be aware of this and use it wisely., (*4)
require_once __DIR__ . '/../vendor/autoload.php';
use Waper\Waper;
$waper = new Waper('http://www.hourpendulum.com');
$image = $waper->fetch();
echo '<img src="'.$image.'" />';
@dragonbe, (*5)