1cool/spider-icon

Spider the website's icon by url

1.1 2020-10-13 09:04 UTC

This package is auto-updated.

Last update: 2024-12-11 15:39:03 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

image

  • 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