ivoba/favicon-fetcher 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ivoba/favicon-fetcher

最新稳定版本:1.1.2

Composer 安装命令:

composer require ivoba/favicon-fetcher

包简介

Favicon Fetcher

README 文档

README

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.

Build Status Dependency Status Latest Version Software License Coverage Status Quality Score Total Downloads

Installation

Via composer:

Add: php composer require ivoba/favicon-fetcher:~1.0

And update it php composer update ivoba/favicon-fetcher

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:
    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.

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.

统计信息

  • 总下载量: 1.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固