PHPackages                             videoswitch/alivideoswitch - 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. videoswitch/alivideoswitch

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

videoswitch/alivideoswitch
==========================

阿里云视(音)频转码

v1.0(6y ago)06MITPHPPHP &gt;=5.6

Since May 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zhenhua1/videoswitch)[ Packagist](https://packagist.org/packages/videoswitch/alivideoswitch)[ RSS](/packages/videoswitch-alivideoswitch/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

videoswitch
===========

[](#videoswitch)

阿里云视频转码封装

使用前须知
-----

[](#使用前须知)

**本包只支持 laravel、yii2、thinkphp5 及更高版本**

使用前准备
-----

[](#使用前准备)

需要去阿里云下载最新的视频转码sdk放到项目的vendor/aliyuncs *没有请创建* （若使用包中的oss相关功能原理同上）

需要将包中common\\services\\AliyunVideoTranscode\\AliyunEnv 下的AliyunConfig.php复制到自己项目的config中并更名为AliZZHConfig.php

音(视)频示例
-------

[](#音视频示例)

```
use common\services\AliyunVideoTranscode\AliyunClient;

$instance=AliyunClient::GetInstance();
$acsClient=$instance->acsClients();
$acsClient->client();
$file='d3ae5eaf2eaf002d2eef71a53247c68a.mp4';
var_dump($acsClient->mp4SwitchManage('submitJobsRequest',$file));//视频转码
var_dump($acsClient->mp3SwitchManage('submitJobsRequest',$file));//音频转码

```

Oss使用示例
-------

[](#oss使用示例)

```
use common\services\AliyunVideoTranscode\AliyunClient;

$instance=AliyunClient::GetInstance();
$acsClient=$instance->ossClients();
$acsClient->client();
var_dump($acsClient->ossManage('listBuckets'));//列举存储空间

```

### 备注

[](#备注)

有关更多的使用功能请看common\\services\\AliyunVideoTranscode\\AliyunEnv\\AliyunAliasesMaps.php中暂时所列方法

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2195d ago

### Community

Maintainers

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

---

Top Contributors

[![zhenhua1](https://avatars.githubusercontent.com/u/22211474?v=4)](https://github.com/zhenhua1 "zhenhua1 (9 commits)")

### Embed Badge

![Health badge](/badges/videoswitch-alivideoswitch/health.svg)

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

###  Alternatives

[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[eightynine/filament-reports

Elegant reports in your filament application

9933.8k](/packages/eightynine-filament-reports)[bolt/assets

🛠 Javascript and CSS Assets used in Bolt's backend. Do not `require` directly.

10144.4k2](/packages/bolt-assets)

PHPackages © 2026

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