Check if website have favicon icon exist or not
If you use composer, you can add this package by running
composer require galiteintechnologies/favicon-finder
<?php
use FaviconFinder\IconFinder;
$iconFinder = new IconFinder();
$isFaviconAvailable = $iconFinder->isFaviconAvailable("http://packagist.com/");
if($isFaviconAvailable)
{
echo "Favicon Icon exist";
} else {
echo "Favicon Icon Does not exist";
}
Favicon Icon exist
Pull requests are always welcome.