PHPackages                             haxibiao/vod-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. haxibiao/vod-php-sdk

Abandoned → [haxibiao/vod-sdk](/?search=haxibiao%2Fvod-sdk)Library[Utility &amp; Helpers](/categories/utility)

haxibiao/vod-php-sdk
====================

VOD SDK For PHP

2.4.3(5y ago)0338MITPHPPHP &gt;=5.6.33

Since Sep 29Pushed 5y agoCompare

[ Source](https://github.com/haxibiao/vod-sdk)[ Packagist](https://packagist.org/packages/haxibiao/vod-php-sdk)[ RSS](/packages/haxibiao-vod-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (14)Used By (0)

简介
--

[](#简介)

基于PHP语言平台的服务端上传的SDK，通过SDK和配合的Demo，可以将视频和封面文件直接上传到腾讯云点播系统，同时可以指定各项服务端上传的可选参数。

使用方式
----

[](#使用方式)

### Composer

[](#composer)

- 引入依赖

```
{
    "require": {
        "haxibiao/vod-sdk": "*"
    }
}
```

- 调用示例

```
require 'vendor/autoload.php';

use Vod\VodUploadClient;
use Vod\Model\VodUploadRequest;

$client = new VodUploadClient("your secretId", "your secretKey");
$req = new VodUploadRequest();
$req->MediaFilePath = "the path to media file";
$req->CoverFilePath = "the path to cover file";
try {
    $rsp = $client->upload("ap-guangzhou", $req);
    echo "FileId => ". $rsp->FileId . "\n";
    echo "MediaUrl -> ". $rsp->MediaUrl . "\n";
    echo "CoverUrl -> ". $rsp->CoverUrl . "\n";
} catch (Exception $e) {
    // 处理上传异常
    echo $e;
}
```

上传成功后将获取文件的播放地址和 FileId

### 通过源码包安装

[](#通过源码包安装)

- 前往 [Github 代码托管地址](https://github.com/tencentyun/vod-php-sdk-v5/raw/master/packages/vod-sdk.zip) 下载源码压缩包并解压到项目当中
- 调用示例

```
require 'vod-sdk-v5/autoload.php';

use Vod\VodUploadClient;
use Vod\Model\VodUploadRequest;

$client = new VodUploadClient("your secretId", "your secretKey");
$req = new VodUploadRequest();
$req->MediaFilePath = "the path to media file";
$req->CoverFilePath = "the path to cover file";
try {
    $rsp = $client->upload("ap-guangzhou", $req);
    echo "FileId => ". $rsp->FileId . "\n";
    echo "MediaUrl -> ". $rsp->MediaUrl . "\n";
    echo "CoverUrl -> ". $rsp->CoverUrl . "\n";
} catch (Exception $e) {
    // 处理上传异常
    echo $e;
}
```

上传成功后将获取文件的播放地址和 FileId

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~101 days

Recently: every ~82 days

Total

13

Last Release

1934d ago

Major Versions

v1.2.3 → v2.0.02019-01-02

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v2.0.0PHP &gt;=5.6.33

### Community

Maintainers

![](https://www.gravatar.com/avatar/aeb8d51af85edddb5e917a684ab64740e6de80c109a0e5b84184b8fb7a097500?d=identicon)[ivanzhang2](/maintainers/ivanzhang2)

---

Top Contributors

[![xujianguo](https://avatars.githubusercontent.com/u/7297536?v=4)](https://github.com/xujianguo "xujianguo (16 commits)")[![ivanzhang2](https://avatars.githubusercontent.com/u/13308603?v=4)](https://github.com/ivanzhang2 "ivanzhang2 (9 commits)")[![soulhdb](https://avatars.githubusercontent.com/u/5770953?v=4)](https://github.com/soulhdb "soulhdb (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/haxibiao-vod-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/haxibiao-vod-php-sdk/health.svg)](https://phpackages.com/packages/haxibiao-vod-php-sdk)
```

###  Alternatives

[overtrue/laravel-qcloud-federation-token

QCloud COS FederationToken generator for Laravel.

178.5k](/packages/overtrue-laravel-qcloud-federation-token)[overtrue/laravel-qcloud-content-audit

腾讯云内容安全（文字图片内容审核）服务

458.2k](/packages/overtrue-laravel-qcloud-content-audit)[qcloud/vod-sdk-v5

VOD SDK For PHP

1150.4k1](/packages/qcloud-vod-sdk-v5)[bertptrs/phpstreams

A streams library for PHP based on the Java 8 Streams API.

883.2k](/packages/bertptrs-phpstreams)[cheprasov/php-parallel

The class allows you to run multiple operations parallel in different processes and send results to the main process. Useful if you need to run multiple independent operations simultaneously, instead of sequential execution, or if you run several independent queries, for example, queries to different data bases

1712.5k5](/packages/cheprasov-php-parallel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
