luminarix/iconscoop

IconScoop - find your favicons
2,876
Install
composer require luminarix/iconscoop
Latest Version:v0.0.3
PHP:^8.4
Laravel:12
License:MIT
Last Updated:Apr 20, 2026
Links: GitHub  ·  Packagist
Maintainer: xHeaven

IconScoop - find your favicons

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

IconScoop helps you retrieve the favicon for any website by parsing HTML tags, inspecting web app manifests, or falling back to the /favicon.ico path. It even supports Google’s favicon service for protected domains. The service returns a Favicon object containing the icon URL (accessible via __toString()), the content location, and the HTTP status code. You can use the provided Laravel facade or instantiate the service directly.

Installation

You can install the package via composer:

composer require luminarix/iconscoop

You can publish the config file with:

php artisan vendor:publish --tag="iconscoop-config"

You can publish the assets with:

php artisan vendor:publish --tag="iconscoop-assets"

Usage

use Luminarix\IconScoop\Facades\IconScoop;

// Fetch the favicon
$favicon = IconScoop::find('https://x.com');

echo $favicon->imageUrl;    // e.g. 'https://www.facebook.com/favicon.ico'
echo $favicon->statusCode;  // e.g. 200
echo $favicon;              // string cast outputs the icon URL

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700

Version History

Version Released PHP Laravel License
v0.0.3 ^8.4 ^12.0 MIT
v0.0.2 ^8.4 ^12.0 MIT
v0.0.1 ^8.4 ^12.0 MIT