定制 dodgyprincess/php-cfstream 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dodgyprincess/php-cfstream

Composer 安装命令:

composer require dodgyprincess/php-cfstream

包简介

Upload and manage Cloudflare Stream easily

README 文档

README

PHP CFStream is a PHP TUS client that makes it easy to send video files to Cloudflare Stream.

  • Simple interface that supports:
    • Upload videos
    • Get status of uploaded videos
    • Get embed code for videos
    • Set allowedOrigins for each video
    • Delete videos
  • Implemented in pure PHP and CURL with the help of GuzzleHttp Client
  • Tightly integrated with Cloudflare Stream
  • Does not support:
    • Resume uploads

Installation

Install the package via Composer as usual. Use the dev-master branch.

composer require dodgyprincess/php-cfstream dev-master

Usage

Generic PHP Projects

If you are on composer-enabled projects, the following instructions should work for you. Otherwise try requiring src/CFStream.php directly in your project instead.

use dodgyprincess\CFStream\CFStream;

$cfstream = new CFStream($key, $zone, $email);

$resourceUrl = $cfstream->upload($filepath);
$cfstream->status($resourceUrl);
$cfstream->code($resourceUrl);
$cfstream->allow($resourceUrl, 'example.com, *.example.net');
$cfstream->delete($resourceUrl);

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固