https://github.com/sy-records/getfavicon
用 PHP 获取网站 favicon 的API,可用于美化网站外链显示效果。
https://github.com/sy-records/getfavicon
favicon getfavicon php vercel-php
Last synced: about 1 month ago
JSON representation
用 PHP 获取网站 favicon 的API,可用于美化网站外链显示效果。
- Host: GitHub
- URL: https://github.com/sy-records/getfavicon
- Owner: sy-records
- License: mit
- Created: 2018-03-08T06:19:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-19T10:25:48.000Z (2 months ago)
- Last Synced: 2025-04-10T00:17:56.995Z (about 1 month ago)
- Topics: favicon, getfavicon, php, vercel-php
- Language: PHP
- Homepage: https://favicon-ico.vercel.app
- Size: 44.9 KB
- Stars: 50
- Watchers: 1
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GetFavicon
用 PHP 获取网站 favicon 的API,可用于美化网站外链显示效果。
## 部署
### 使用 `Vercel` 部署
Fork 本项目后,在 Vercel 上导入项目部署即可。
### Nginx 等
将 `api` 目录设置为根目录,或者将 `index.php` 放置在网站根目录下即可。
### Docker
```bash
docker run -d --name get-favicon -p 80:80 lufeidot/get-favicon:latest
```## 使用
`https://favicon-ico.vercel.app/?url=域名`
```
https://favicon-ico.vercel.app/?url=example.com
https://favicon-ico.vercel.app/?url=http://example.com
https://favicon-ico.vercel.app/?url=https://example.com
```## 示例
- [x] 百度 
- [x] 维基百科 
- [x] segmentfault 
- [x] GitHub ## LICENSE
MIT