Download the PHP package ivoba/favicon-fetcher without Composer
On this page you can find all versions of the php package ivoba/favicon-fetcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package favicon-fetcher
Favicon Fetcher
Lib to fetch Favicon from a url and store it as PNG. Its highly flexible. You can use your own Fetchers or FileNamerResolvers. So it would also be possible to store it as gif, jpg or whatever.
Installation
Via composer:
Add:
And update it
Usage
Use the static factory method to create the Fetcher with default settings:
$fetcher = \Ivoba\FaviconFetcher\FaviconFetcher::create();
The default settings are:
- stores pngs in/tmp
- uses DomainFileNameResolver, which creates a filename based on the domain: github.com => github.com.png
- trys to fetch favicon by different webservices in this order:
- Google web service
- http://getfavicon.appspot.com (can be broken at times)
- Default Image
- if Google service doesnt deliver a converted png already, we create it ourselves via imagemagick on commandline
All components are exchangable via interfaces for custom requirements.
Demo
cd fetcher-dir
php -S localhost:8080
type in your browser:
http://localhost:8080/demo.php?favicon=facebook.com;twitter.com;unfuddle.com;packagist.org
You will see all favicons as png images.
All versions of favicon-fetcher with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
ext-curl Version *
ext-curl Version *
The package ivoba/favicon-fetcher contains the following files
Loading the files please wait ....