luminarix/iconscoop 问题修复 & 功能扩展

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

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

luminarix/iconscoop

Composer 安装命令:

composer require luminarix/iconscoop

包简介

IconScoop - find your favicons

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

IconScoop helps you retrieve the favicon for any website by parsing HTML tags, inspecting web app manifests, or falling back to the /favicon.ico path. It even supports Google’s favicon service for protected domains. The service returns a Favicon object containing the icon URL (accessible via __toString()), the content location, and the HTTP status code. You can use the provided Laravel facade or instantiate the service directly.

Installation

You can install the package via composer:

composer require luminarix/iconscoop

You can publish the config file with:

php artisan vendor:publish --tag="iconscoop-config"

You can publish the assets with:

php artisan vendor:publish --tag="iconscoop-assets"

Usage

use Luminarix\IconScoop\Facades\IconScoop;

// Fetch the favicon
$favicon = IconScoop::find('https://x.com');

echo $favicon->imageUrl;    // e.g. 'https://www.facebook.com/favicon.ico'
echo $favicon->statusCode;  // e.g. 200
echo $favicon;              // string cast outputs the icon URL

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固