Download the PHP package php-feed-io/favicon-io without Composer
On this page you can find all versions of the php package php-feed-io/favicon-io. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-feed-io/favicon-io
More information about php-feed-io/favicon-io
Files in php-feed-io/favicon-io
Download php-feed-io/favicon-io
More information about php-feed-io/favicon-io
Files in php-feed-io/favicon-io
Vendor php-feed-io
Package favicon-io
Short Description PHP library for fetching favicons
License MIT
Package favicon-io
Short Description PHP library for fetching favicons
License MIT
Please rate this library. Is it a good library?
Informations about the package favicon-io
favicon-io
A PHP library for discovering favicons from websites, built on PSR-18 (HTTP Client).
Features
- Priority-ordered discovery: apple-touch-icon → sized icons (largest first, SVG preferred) → regular icon →
/favicon.ico→og:image - PSR-18 / PSR-17 compatible — plug any HTTP client (Guzzle, Symfony, etc.)
- Optional PSR-16 caching — avoid re-probing the same domain on every call
- Optional PSR-3 logging — debug-level messages for HTTP failures
- No framework dependencies
Installation
You also need a PSR-18 HTTP client and PSR-17 request factory. For example, using Nyholm/psr7 and Symfony HTTP Client:
Usage
With caching (PSR-16)
With logging (PSR-3)
Discovery priority
| Priority | Source |
|---|---|
| 1 | <link rel="apple-touch-icon"> / <link rel="apple-touch-icon-precomposed"> |
| 2 | <link rel="icon" sizes="…"> — largest dimension wins; SVG preferred on tie; sizes="any" counts as scalable |
| 3 | <link rel="icon"> / <link rel="shortcut icon"> — without sizes attribute |
| 4 | /favicon.ico — confirmed via HEAD request (2xx required) |
| 5 | <meta property="og:image"> — last resort |
Requirements
- PHP 8.2+
- PSR-18 HTTP client implementation
- PSR-17 request factory implementation
All versions of favicon-io with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
ext-dom Version *
ext-libxml Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/simple-cache Version ^3.0
psr/log Version ^3.0
ext-dom Version *
ext-libxml Version *
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/simple-cache Version ^3.0
psr/log Version ^3.0
The package php-feed-io/favicon-io contains the following files
Loading the files please wait ...