modufolio/tus-psr7
Composer 安装命令:
composer require modufolio/tus-psr7
包简介
TUS (Tus Resumable Upload Protocol) server implementation for PHP
README 文档
README
A PHP implementation of the TUS resumable upload protocol.
Installation
composer require modufolio/tus-psr7
Requirements
- PHP 8.2 or higher
- PSR-7 HTTP Message implementation
Usage
use Modufolio\Tus\TusServer; $uploadDir = '/path/to/uploads'; $maxSize = 1024 * 1024 * 100; // 100MB $chunkSize = 1024 * 1024 * 5; // 5MB $server = new TusServer($uploadDir, $maxSize, $chunkSize); // Handle the request $response = $server->handle($request);
Features
- TUS protocol v1.0.0 compliant
- Resumable file uploads
- Checksum verification support (md5, sha1, sha256, sha512)
- Configurable storage backends
- MIME type validation
- Automatic cleanup of expired uploads
License
MIT
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-25