{"id":37009931,"url":"https://github.com/luispabon/favicon-finder","last_synced_at":"2026-01-14T00:58:32.372Z","repository":{"id":35931554,"uuid":"220289698","full_name":"luispabon/favicon-finder","owner":"luispabon","description":"Simple PHP library to work out the favicon for a website.","archived":false,"fork":false,"pushed_at":"2021-11-17T18:19:40.000Z","size":126,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-27T15:24:38.001Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luispabon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-07T17:13:22.000Z","updated_at":"2022-09-05T17:24:44.000Z","dependencies_parsed_at":"2022-08-27T09:21:23.589Z","dependency_job_id":null,"html_url":"https://github.com/luispabon/favicon-finder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/luispabon/favicon-finder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luispabon%2Ffavicon-finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luispabon%2Ffavicon-finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luispabon%2Ffavicon-finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luispabon%2Ffavicon-finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luispabon","download_url":"https://codeload.github.com/luispabon/favicon-finder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luispabon%2Ffavicon-finder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T00:56:45.260Z","updated_at":"2026-01-14T00:58:27.998Z","avatar_url":"https://github.com/luispabon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.auronconsulting.co.uk/api/v1/teams/main/pipelines/favicon-finder-master/jobs/analyze-master/badge)](https://ci.auronconsulting.co.uk/teams/main/pipelines/favicon-finder-master)\n[![Code coverage](https://codecov.io/gh/luispabon/favicon-finder/branch/master/graph/badge.svg)](https://codecov.io/gh/luispabon/favicon-finder)\n\n# Favicon Finder\n\nSimple PHP library to work out the favicon for a site, given an URL.\n\nIt currently supports finding the default favicon, if it exists on the host (eg `/favicon.ico`) as well as some basic \nHTML parsing of the homepage to hunt for standard favicon tags. Does not support `apple` type icons or manifests, \nalthough it can be extended to do so if necessary (PRs welcome).\n\nThis library is based on [Arthur Hoaro's work](https://github.com/ArthurHoaro/favicon). \n\nHere are the changes you can see in this version:\n\n  * Only return favicon paths, when found\n  * PSR-16: Simple Cache support\n  * More extensive HTML scraping tests\n  * PHP 7.3+ support\n\n## Requirements\n\n- [PHP 7.3](http://php.net/)\n- [php-xml](http://php.net/manual/fr/refs.xml.php) extension: parse HTML content\n- [php-curl](https://www.php.net/manual/en/curl.installation.php)\n- [Guzzle](https://github.com/guzzle/guzzle)\n- GNU Make (or compatible): This is optional, if you want to contribute and use the Makefile targets available for\n    running tests\n\n## Installation\n\n```shell script\ncomposer req luispabon/favicon-finder\n```\n\n## Basic usage\n\n```php\nrequire_once('vendor/autoload.php');\n\n$guzzle = new \\GuzzleHttp\\Client();\n\n// You can use any PSR-16 implementation here - if you have none and don't care\n// about caching, simply use the provided dummy cache implementation below\n$cache = new \\FaviconFinder\\DummyCache();\n\n// Cache lifetime in seconds (default is 86400 or 1 day)\n$ttl = 60;\n\n$favicon = new \\FaviconFinder\\Favicon($guzzle, $cache, $ttl);\n\necho $favicon-\u003eget('https://github.com/luispabon/favicon-finder');\n\n// Displays: https://github.com/favicon.ico\nvar_dump($favicon-\u003eget('http://nofavicon.tld'));\n// Returns null\n```\n\n## Contributing\n\nFork this repo, do your stuff, send a PR. Tests are mandatory:\n\n  * PHP unit coverage must be 100%\n  * Infection MSI must be 100%\n  * PHPStan must show no errors \n  \nThe provided [Makefile](Makefile) has all the basic test targets and is what's in use in CI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluispabon%2Ffavicon-finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluispabon%2Ffavicon-finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluispabon%2Ffavicon-finder/lists"}