2017 © Pedro Peláez
 

library favicon-fetcher

Favicon Fetcher

image

ivoba/favicon-fetcher

Favicon Fetcher

  • Saturday, April 4, 2015
  • by ivoba
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,482 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

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., (*1)

Build Status Dependency Status Latest Version Software License Coverage Status Quality Score Total Downloads, (*2)

Installation

Via composer:, (*3)

Add: php composer require ivoba/favicon-fetcher:~1.0, (*4)

And update it php composer update ivoba/favicon-fetcher, (*5)

Usage

Use the static factory method to create the Fetcher with default settings:, (*6)

$fetcher = \Ivoba\FaviconFetcher\FaviconFetcher::create();

The default settings are:, (*7)

  • 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:
    1. Google web service
    2. http://getfavicon.appspot.com (can be broken at times)
    3. 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., (*8)

Demo

cd fetcher-dir
php -S localhost:8080

type in your browser:, (*9)

http://localhost:8080/demo.php?favicon=facebook.com;twitter.com;unfuddle.com;packagist.org

You will see all favicons as png images., (*10)

The Versions

04/04 2015

dev-master

9999999-dev https://github.com/ivoba/favicon-fetcher

Favicon Fetcher

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

favicon fetcher grabber scrapper

04/04 2015

1.1.2

1.1.2.0 https://github.com/ivoba/favicon-fetcher

Favicon Fetcher

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

favicon fetcher grabber scrapper

13/11 2014

1.1.1

1.1.1.0 https://github.com/ivoba/favicon-fetcher

Favicon Fetcher

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

favicon fetcher grabber scrapper

11/11 2014

1.1.0

1.1.0.0 https://github.com/ivoba/favicon-fetcher

Favicon Fetcher

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

favicon fetcher grabber scrapper

10/11 2014

1.0.0

1.0.0.0 https://github.com/ivoba/favicon-fetcher

Favicon Fetcher

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

favicon fetcher grabber scrapper