PHPackages                             vincepare/favicon-downloader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. vincepare/favicon-downloader

ActiveLibrary[HTTP &amp; Networking](/categories/http)

vincepare/favicon-downloader
============================

Find &amp; download favicons

1.0.0(10y ago)154232Apache-2.0PHPPHP &gt;=5.3.0

Since Jun 22Pushed 10y ago3 watchersCompare

[ Source](https://github.com/vincepare/FaviconDownloader)[ Packagist](https://packagist.org/packages/vincepare/favicon-downloader)[ Docs](https://github.com/vincepare/FaviconDownloader)[ RSS](/packages/vincepare-favicon-downloader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

FaviconDownloader
-----------------

[](#favicondownloader)

FaviconDownloader can find favicon URL (and download it) from a web page URL. This PHP class handles multiple favicons flavors, including some edge cases like relative URL or embed favicons :

- Absolute URL :
    ``
- Absolute URL with relative scheme :
    ``
- Absolute path :
    ``
- Relative URL :
    ``
- Embed base64-encoded favicon :
    ``

### Install

[](#install)

The easiest way to install FaviconDownloader is to use Composer from the command line :

```
composer require vincepare/favicon-downloader

```

Otherwise, just download [FaviconDownloader.php](https://raw.githubusercontent.com/vincepare/FaviconDownloader/master/src/FaviconDownloader.php) and require it manually. Tested on PHP 5.3, 5.4, 5.5 &amp; 5.6.

### Example

[](#example)

```
require 'FaviconDownloader.php';
use Vincepare\FaviconDownloader\FaviconDownloader;

// Find & download favicon
$favicon = new FaviconDownloader('http://stackoverflow.com/questions/19503326/bug-with-chrome-tabs-create-in-a-loop');

if (!$favicon->icoExists) {
    echo "No favicon for ".$favicon->url;
    die(1);
}

echo "Favicon found : ".$favicon->icoUrl."\n";

// Saving favicon to file
$filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'favicon-'.time().'.'.$favicon->icoType;
file_put_contents($filename, $favicon->icoData);
echo "Saved to ".$filename."\n\n";

echo "Details :\n";
$favicon->debug();
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3984d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/251526f87aac74401277a40bc612181175e5553417590588c2755c169311016f?d=identicon)[vincepare](/maintainers/vincepare)

---

Top Contributors

[![vincepare](https://avatars.githubusercontent.com/u/12776003?v=4)](https://github.com/vincepare "vincepare (2 commits)")

---

Tags

curlhtmldownloadfaviconbookmark

### Embed Badge

![Health badge](/badges/vincepare-favicon-downloader/health.svg)

```
[![Health](https://phpackages.com/badges/vincepare-favicon-downloader/health.svg)](https://phpackages.com/packages/vincepare-favicon-downloader)
```

###  Alternatives

[rmccue/requests

A HTTP library written in PHP, for human beings.

3.6k34.5M258](/packages/rmccue-requests)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)[msankhala/parsehub-php

Php wrapper classes for Parsehub REST api.

1312.4k](/packages/msankhala-parsehub-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
