{"repo":"ash-jc-allen/favicon-fetcher","free":true,"listed":false,"github":"https://github.com/ash-jc-allen/favicon-fetcher","clone":"git clone https://github.com/ash-jc-allen/favicon-fetcher.git","description":"A Laravel package for fetching favicons from websites.","language":"PHP","stars":191,"topics":["laravel","php","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Table of Contents - Overview - Installation Requirements Install the Package Publish the Config - Usage Fetching Favicons + Using the fetch Method + Using the fetchOr Method + Using the fetchAll Method + Using the fetchAllOr Method Exceptions Drivers Available Drivers + How to Choose a Driver Choosing a Driver + Fallback Drivers + Adding Your Own Driver HTTP Timeouts TLS Verification HTTP User Agent Storing Favicons + Using store + Using storeAs Caching Favicons Favicon Types Favicon Sizes - Testing - Security - Contribution - Changelog - Upgrading - Credits - License Overview A Laravel package that can be used for fetching favicons from websites. Installation Requirements The package has been developed and tested to work with the following minimum requirements: - PHP 8.0 - Laravel 8.0 Install the Package You can install the package via Composer: Publish the Config You can then publish the package's config file by using the following command: Usage Fetching Favicons Now that you have the package installed, you can start fetching the favicons from different websites. Using the fetch Method To fetch a favicon from a website, you can use the fetch method which will return an instance of AshAllenDesign\\FaviconFetcher\\Favicon : Using the fetchOr Method If you'd like to provide a default value to be used if a favicon cannot be found, you can use the fetchOr method. For example, if you wanted to use a default icon ( https://example.com/favicon.ico ) if a favicon could not be found, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ash-jc-allen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ash-jc-allen/favicon-fetcher/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}