Download the PHP package arthurhoaro/favicon without Composer
On this page you can find all versions of the php package arthurhoaro/favicon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download arthurhoaro/favicon
More information about arthurhoaro/favicon
Files in arthurhoaro/favicon
Download arthurhoaro/favicon
More information about arthurhoaro/favicon
Files in arthurhoaro/favicon
Vendor arthurhoaro
Package favicon
Short Description PHP Library used to discover favicon from given URL
License Apache-2.0
Homepage https://github.com/ArthurHoaro/favicon
Package favicon
Short Description PHP Library used to discover favicon from given URL
License Apache-2.0
Homepage https://github.com/ArthurHoaro/favicon
Please rate this library. Is it a good library?
Informations about the package favicon
A library to determine a site's favicon
This library is based on Chris Shiflett work.
Here are the changes you can see in this version:
- Cover more use case to find favicons
- Composer support
- Various technical changes and improvements
- Unit tests
Requirements
- PHP 8.0+ (you can use v1.x for PHP 5.6+)
- php-xml extension: parse HTML content
- php-fileinfo extension: check image type
Composer
Use Composer by adding the following lines in your composer.json
:
"require": {
"arthurhoaro/favicon": "~2.0"
}
Basic Usage
You can avoid hotlinking by downloading the favicons:
Or directly get the raw image as a binary string:
Note:
DL_FILE_PATH
andRAW_IMAGE
require the cache to be enabled.
Configure
You can setup cache settings:
All versions of favicon with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
ext-dom Version *
ext-fileinfo Version *
ext-dom Version *
ext-fileinfo Version *
The package arthurhoaro/favicon contains the following files
Loading the files please wait ....