PHPackages                             jameswang/vod - 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. jameswang/vod

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jameswang/vod
=============

这是阿里云点进一步封装，适用于laravel

v1.0.7(5y ago)1217MITPHP

Since Aug 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wangze0218/vod)[ Packagist](https://packagist.org/packages/jameswang/vod)[ RSS](/packages/jameswang-vod/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

 vod
=====

[](#-vod-)

 这是阿里云点播sdk进一步封装，适用于laravel.

 目前只含有 上传功能

Installing
----------

[](#installing)

```
$ composer require jameswang/vod -vvv
```

Usage
-----

[](#usage)

TODO

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/jameswang/vod/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/jameswang/vod/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

\##一般引入方式

```
"",
    'accessKeySecret'=>"",
];
$path = '/Users/james/Downloads/aa.mp4';

// $arg['title']        // 视频标题(必填参数)
// $arg['file_name']    // 视频源文件名称，必须包含扩展名(必填参数)
// $arg['description']  // 视频源文件描述(可选);
// $arg['cover_url']    // 自定义视频封面(可选)
// $arg['tag']          // 视频标签，多个用逗号分隔(可选)
$arg['title'] = '测试';
$arg['file_name'] = "aa.mp4";

$vod = new Vod($config);
//带文件上传
$result = $vod->oss_upload_video($arg,$path);

//只获取上传凭证
$result = $vod->reserve_upload_video($arg);

//获取播放凭证
//$result = $vod->get_play_video('xxxxx81f25e6490d9d76ec7101axxxxx');
```

\##Laravel 引入方式

config/services.php

```
    'aliyun-vod' => [
        'accessKeyId' => env('VOD_ACCESS_KEY_ID'),
        'accessKeySecret' => env('VOD_ACCESS_KEY_SECRET'),
    ],
```

```
 vod = $vod;
     }

     public function reserveVideo($arg)
     {
         // $arg['title']        // 视频标题(必填参数)
         // $arg['file_name']    // 视频源文件名称，必须包含扩展名(必填参数)
         // $arg['description']  // 视频源文件描述(可选);
         // $arg['cover_url']    // 自定义视频封面(可选)
         // $arg['tag']          // 视频标签，多个用逗号分隔(可选)
         //$arg['title'] = 'demo';
         //$arg['file_name'] = 'demo.mp4';

         $res = $this->vod->reserve_upload_video($arg);

         return $res;

     }

     //获取播放凭证
     public function getPlayVideo($video_id)
     {

          $res = $this->vod->get_play_video($video_id);
          return $res;
     }

}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~136 days

Recently: every ~232 days

Total

8

Last Release

1915d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/816c968a78d9d1558824e2e735acab491e4801e8ee4ce22a02de647f2955e88b?d=identicon)[wangze0218](/maintainers/wangze0218)

---

Top Contributors

[![jameswang0218](https://avatars.githubusercontent.com/u/20321111?v=4)](https://github.com/jameswang0218 "jameswang0218 (6 commits)")

### Embed Badge

![Health badge](/badges/jameswang-vod/health.svg)

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

###  Alternatives

[aliyuncs/aliyun-oss-php-sdk-laravel

A simple Laravel 5 and lumen service provider for including the Oss PHP SDK for PHP.

7535.4k2](/packages/aliyuncs-aliyun-oss-php-sdk-laravel)

PHPackages © 2026

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