Coder Social home page Coder Social logo

amrice / serverless-dplayer-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tennousuathena/serverless-dplayer-php

0.0 0.0 0.0 5.77 MB

📋腾讯云SCF构建DPlayer弹幕后端 v3

Home Page: https://danmaku.0wo.top/

License: GNU General Public License v3.0

PHP 100.00%

serverless-dplayer-php's Introduction

Serverless-DPlayer-PHP

DPlayer Serverless 750×445px.png

这是什么?

使用腾讯云函数(SCF)PHP 7搭建的无服务器Dplayer弹幕后端

MoePlayer/DPlayer-node比有什么不一样吗?

+ ~~使用PHP v7,PHP才是最好的语言!(划掉~~
+ 本项目无需安装服务器、依赖等,可以直接部署
+ 腾讯云函数有一定免费额度,在请求少的情况下成本几乎为零,无需购买VPS
+ 可以设置敏感词,屏蔽广告等
! 无法100%兼容Dplayer,如无法限制最大弹幕数量
- 高并发下性能不明

怎么用啊?

0x0001

首先,你需要有一个腾讯云账号 ->点我注册

0x0002

在云函数列表新建一个函数,地域建议广东:支持API网关 image.png 选择空白函数,内存128mb即可 image.png 下载一个最新的Release中的layer.zip,新建一个层(名称随意)并上传 image.png 绑定 image.png

0x003

image.png 在触发管理中添加一个API网关的触发器

0x0004

配置config.php中的信息,完成! Dplayer后端地址形如 https://service-henghenghengaaa-114514.gz.apigw.tencentcs.com/release/danmaku/

花多少钱啊?

截至目前,腾讯云每月免费额度信息如下:

内存(MB) 免费时长(秒)
128 3,200,000
256 1,600,000
512 800,000
1024 400,000
1536 266,667
3072 133,333

我可以用我自己的服务器吗?

目前仅支持SCF,请见谅

还有问题?

加入Telegram群或提交Issue

serverless-dplayer-php's People

Contributors

tennousuathena avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.