Download the PHP package luispabon/favicon-finder without Composer
On this page you can find all versions of the php package luispabon/favicon-finder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luispabon/favicon-finder
More information about luispabon/favicon-finder
Files in luispabon/favicon-finder
Package favicon-finder
Short Description PHP Library used to discover favicon from given URL
License Apache-2.0
Homepage https://github.com/luispabon/favicon
Informations about the package favicon-finder
Favicon Finder
Simple PHP library to work out the favicon for a site, given an URL.
It currently supports finding the default favicon, if it exists on the host (eg /favicon.ico
) as well as some basic
HTML parsing of the homepage to hunt for standard favicon tags. Does not support apple
type icons or manifests,
although it can be extended to do so if necessary (PRs welcome).
This library is based on Arthur Hoaro's work.
Here are the changes you can see in this version:
- Only return favicon paths, when found
- PSR-16: Simple Cache support
- More extensive HTML scraping tests
- PHP 7.3+ support
Requirements
- PHP 7.3
- php-xml extension: parse HTML content
- php-curl
- Guzzle
- GNU Make (or compatible): This is optional, if you want to contribute and use the Makefile targets available for running tests
Installation
Basic usage
Contributing
Fork this repo, do your stuff, send a PR. Tests are mandatory:
- PHP unit coverage must be 100%
- Infection MSI must be 100%
- PHPStan must show no errors
The provided Makefile has all the basic test targets and is what's in use in CI.
All versions of favicon-finder with dependencies
ext-dom Version *
psr/simple-cache Version ^1.0.1
guzzlehttp/guzzle Version ^6.4