serch3/bunny-stream
最新稳定版本:2.0
Composer 安装命令:
composer require serch3/bunny-stream
包简介
A Lightweight PHP SDK for Bunny.net Streaming API
README 文档
README
A modern, robust PHP library to interact with the Bunny Stream API.
Requirements
- PHP 8.2+
- Composer
Installation
composer require serch3/bunny-stream
Quick Start
Initialize the client with your API Key and Library ID:
use Bunny\Stream\Client; $client = new Client('YOUR_API_KEY', 'YOUR_LIBRARY_ID');
Basic Usage
List Videos:
$videos = $client->video()->list(); foreach ($videos['items'] as $video) { echo $video['title'] . "\n"; }
Upload a Video (Resumable):
// 1. Create a video entry $video = $client->video()->create('My Awesome Video'); // 2. Upload using Tus $uploader = $client->tus()->createUpload( $video['guid'], '/path/to/video.mp4' ); $uploader->upload();
Manage Collections:
$client->collection()->create('New Collection');
Documentation
For a complete list of available methods and parameters, please see the API Reference.
Upgrading
Upgrading from v1? Check out the Upgrade Guide.
License
MIT
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-27