{"id":13498726,"url":"https://github.com/TennousuAthena/Serverless-DPlayer-PHP","last_synced_at":"2025-03-29T01:32:32.668Z","repository":{"id":103690002,"uuid":"261368100","full_name":"TennousuAthena/Serverless-DPlayer-PHP","owner":"TennousuAthena","description":"📋腾讯云SCF构建DPlayer弹幕后端 v3","archived":false,"fork":false,"pushed_at":"2021-11-28T13:24:20.000Z","size":5918,"stargazers_count":12,"open_issues_count":6,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-31T16:37:48.698Z","etag":null,"topics":["danmaku","dplayer","php","php7","scf","serverless","tencent-cloud","tencent-cos"],"latest_commit_sha":null,"homepage":"https://danmaku.0wo.top/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TennousuAthena.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-05T05:18:43.000Z","updated_at":"2024-07-13T02:36:35.000Z","dependencies_parsed_at":"2023-07-07T00:46:04.294Z","dependency_job_id":null,"html_url":"https://github.com/TennousuAthena/Serverless-DPlayer-PHP","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TennousuAthena%2FServerless-DPlayer-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TennousuAthena%2FServerless-DPlayer-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TennousuAthena%2FServerless-DPlayer-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TennousuAthena%2FServerless-DPlayer-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TennousuAthena","download_url":"https://codeload.github.com/TennousuAthena/Serverless-DPlayer-PHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126104,"owners_count":20727529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["danmaku","dplayer","php","php7","scf","serverless","tencent-cloud","tencent-cos"],"created_at":"2024-07-31T21:00:41.668Z","updated_at":"2025-03-29T01:32:30.473Z","avatar_url":"https://github.com/TennousuAthena.png","language":"PHP","funding_links":[],"categories":["应用场景"],"sub_categories":["其它"],"readme":"# Serverless-DPlayer-PHP\n\n![DPlayer Serverless 750×445px.png](https://i.loli.net/2020/05/21/2GXAIglTBx96to4.png)\n\n## 这是什么？\n使用[腾讯云函数（SCF）](https://url.cn/55F1LtN)PHP 7搭建的无服务器Dplayer弹幕后端\n\n### 和[MoePlayer/DPlayer-node](https://github.com/MoePlayer/DPlayer-node)比有什么不一样吗？\n\n```diff\n+ ~~使用PHP v7，PHP才是最好的语言！（划掉~~\n+ 本项目无需安装服务器、依赖等，可以直接部署\n+ 腾讯云函数有一定免费额度，在请求少的情况下成本几乎为零，无需购买VPS\n+ 可以设置敏感词，屏蔽广告等\n! 无法100%兼容Dplayer，如无法限制最大弹幕数量\n- 高并发下性能不明\n```\n## 怎么用啊？\n\n### 0x0001\n首先，你需要有一个腾讯云账号 -\u003e[点我注册](https://url.cn/5lgcrXW)\n\n### 0x0002\n从最新的Release中下载 `Serverless-DPlayer-PHP.zip`\n\n在云函数列表新建一个函数\n![image.png](https://i.loli.net/2020/05/05/E56lYMm7TdjzSWP.png)\n\n自定义创建-\u003e事件函数-\u003e代码部署-\u003e本地上传zip包\n\n执行方法为 `danmaku.main_handler`\n\n![image.png](https://telegra.ph/file/59b365b926705477cd523.png)\n\n下载一个最新的[Release](https://github.com/qcminecraft/Serverless-DPlayer-PHP/releases)中的layer.zip，新建一个层（名称随意）并上传\n![image.png](https://i.loli.net/2020/05/06/6nxDT5uZQXAgcop.png)\n\n绑定\n\n![image.png](https://i.loli.net/2020/05/06/NCBIs927rWh5Vz3.png)\n\n### 0x003\n\n![image.png](https://i.loli.net/2020/05/05/rFQUCxHuEij6ZT5.png)\n在触发管理中添加一个API网关的触发器\n\n### 0x0004\n配置config.php中的信息，完成！\nDplayer后端地址形如 https://service-henghenghengaaa-114514.gz.apigw.tencentcs.com/release/danmaku/\n\n## 花多少钱啊？\n截至目前，腾讯云每月[免费额度](https://url.cn/5HhTDU9)信息如下：\n|  内存（MB）   | 免费时长（秒）  |\n|  ----  | ----  |\n| 128 |\t3,200,000 |\n| 256 |\t1,600,000 |\n| 512 |\t800,000 |\n| 1024 |\t400,000 |\n| 1536 |\t266,667 |\n| 3072 |\t133,333 |\n\n## 我可以用我自己的服务器吗？\n目前仅支持SCF，请见谅\n\n### 还有问题？\n加入[Telegram群](https://t.me/oi_ez)或提交[Issue](https://github.com/qcminecraft/Serverless-DPlayer-PHP/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTennousuAthena%2FServerless-DPlayer-PHP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTennousuAthena%2FServerless-DPlayer-PHP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTennousuAthena%2FServerless-DPlayer-PHP/lists"}