1cool / spider-icon
Spider the website's icon by url
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/1cool/spider-icon
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3
- symfony/dom-crawler: ^5.1
This package is auto-updated.
Last update: 2025-09-11 17:27:09 UTC
README
spider-icon
Spider the website's icon by url
Use tutorial
- install
composer require 1cool/spider-icon
- use guide
<?php use SpiderIcon\Spider; Spider::request('your url');
Result
- if the website don’t have icon,will return empty array
[]
- if the website have icon, will return array
['type'=>'url','content'=>'url']
type means result type. it possible value: url and base64
content means result content. it possible value:icon's url and icon's base64