Skip to content
/ 60s-php Public

60s读世界PHP版。支持 API 接口、移动版页面、docker部署

License

Notifications You must be signed in to change notification settings

lzwme/60s-php

Repository files navigation

「60s看世界」API 集合 PHP 版

在线浏览 https://lzw.me/x/60s

「60s看世界」免费快速的 API 集合,60s 带你看世界、哔哩/微博/抖音/知乎/头条热搜、汇率换算、Bing 壁纸等

参考 vikiboss/60s 实现的 PHP 版本。主要是直接在已有 PHP 服务下上传为一个子目录即可使用,实现服务简单部署。

🪵 API 目录

  1. 🌍 60s 读懂世界
  2. 🏞️ Bing 每日壁纸
  3. 🪙 汇率查询(支持 160+ 货币)
  4. 📺 哔哩哔哩实时热搜榜
  5. 🦊 微博实时热搜榜
  6. ❓ 知乎实时热搜
  7. 📰 头条实时热搜
  8. 🎵 抖音实时热搜
  9. 📰 历史上的今天

🎨 返回格式

除特殊说明外,所有 API 均支持返回以下格式:

  • json(默认)
  • text

通过 URL 的 e/encode/encoding 参数进行指定。

比如:

🧭 使用说明

1. 🌍 【知乎每日早报】每天 60s 读懂世界

2. 🏞️ Bing 每日壁纸

3. 🪙 汇率查询(每天更新,支持 160+ 货币)

4. 📺 哔哩哔哩实时热搜榜

5. 🦊 微博实时热搜榜

6. ❓ 知乎实时热搜榜

7. 📰 头条实时热搜榜

8. 🎵 抖音实时热搜榜

9. 历史上的今天【百科】

安装部署

直接部署

首先,下载 60s 目录至本地:

wget https:///ghfast.top/github.com/lzwme/60s-php/archive/refs/heads/main.zip
unzip main.zip && mv 60s-php-main 60s
ls 60s

然后基于 PHP 部署一个基本的 Web 服务,将 Web 服务根目录指向 60s 目录即可。nginx 配置请参考:./nginx-60s.conf

Docker 部署

首先下载 60s 目录至本地目录,如 /home/www/60s

基于 docker 命令:

cd /home/www/60s

# 拉取 php7.4 镜像
docker pull shinsenter/phpfpm-nginx:php7.4-alpine

# 启动
docker run -d \
  --name 60s \
  -v "$(pwd)/:/var/www/html" \
  -v "$(pwd)/nginx-60s.conf:/etc/nginx/sites-enabled/00-default.conf" \
  -p 8060:80 \
  shinsenter/phpfpm-nginx:php7.4-alpine

基于 docker-compose

进入 60s 目录,然后执行如下命令即可:

cd /home/www/60s
docker-compose up -d

最后访问 http://localhost:8060/reader 即可。

相关

About

60s读世界PHP版。支持 API 接口、移动版页面、docker部署

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published