PHPackages                             lokielse/aliyun-open-api-mts - 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. [API Development](/categories/api)
4. /
5. lokielse/aliyun-open-api-mts

ActiveLibrary[API Development](/categories/api)

lokielse/aliyun-open-api-mts
============================

The MTS SDK for Aliyun OpenAPI

v1.0.0(10y ago)71.3kMITPHPPHP &gt;=5.3.0

Since Dec 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/lokielse/php-aliyun-open-api-mts)[ Packagist](https://packagist.org/packages/lokielse/aliyun-open-api-mts)[ Docs](https://github.com/lokielse/aliyun-open-api-mts)[ RSS](/packages/lokielse-aliyun-open-api-mts/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

The MTS SDK for Aliyun OpenAPI
==============================

[](#the-mts-sdk-for-aliyun-openapi)

[![Latest Version on Packagist](https://camo.githubusercontent.com/133d2f52855bcaac18aab20cac7c0a1da0dad331862b04e3d0a3b4d8d1a73fee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6b69656c73652f616c6979756e2d6f70656e2d6170692d6d74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lokielse/aliyun-open-api-mts)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/83bb0ec2bc0cd46d618453c592b7a5eb2b5d076bba48bf450ee593b3def0a456/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6b69656c73652f616c6979756e2d6f70656e2d6170692d6d74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lokielse/aliyun-open-api-mts)

The MTS SDK for Aliyun OpenAPI

Install
-------

[](#install)

Via Composer

```
$ composer require lokielse/aliyun-open-api-mts
```

Usage
-----

[](#usage)

```
/**
 * 访问信息
 */
$config = [
	'AccessKeyId'=>'',
	'AccessKeySecret'=>'',
];

/**
 * 配置网关
 */
$endpoint = new Endpoint('cn-hangzhou', EndpointConfig::getRegionIds(), EndpointConfig::getProductDomains());
EndpointProvider::setEndpoints([ $endpoint ]);

/**
 * 授权资料
 */
$profile = DefaultProfile::getProfile('cn-hangzhou', $config['AccessKeyId'], $config['AccessKeySecret']);

/**
 * 输入文件信息
 */
$input = [
	'Bucket'   => 'zuren',
	'Location' => 'oss-cn-hangzhou',
	'Object'   => 'videos/test/input_demo_01.mp4'
];

/**
 * 输出文件信息
 */
$outputs = [
	[
		'OutputObject' => 'videos/test/input_demo_01.mp4',
		'TemplateId'   => 'S00000001-200030', //模板ID
	]
];

/**
 * 请求对象
 */
$request = new SubmitJobsRequest();
$request->setInput(json_encode($input));
$request->setOutputBucket('zuren');
$request->setOutputs(json_encode($outputs));
$request->setPipelineId('81029d8fb1724902a4f7a421f509e153'); //管道ID

$client  = new DefaultAcsClient($profile);
$response = $client->getAcsResponse($request);

var_dump($response);
```

[官方文档](https://help.aliyun.com/document_detail/mts/api-reference/trans-ossfile/SubmitJobs.html)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lokielse](https://github.com/lokielse)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3845d ago

### Community

Maintainers

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

---

Top Contributors

[![lokielse](https://avatars.githubusercontent.com/u/1573211?v=4)](https://github.com/lokielse "lokielse (8 commits)")

---

Tags

phpsdkaliyunmts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lokielse-aliyun-open-api-mts/health.svg)

```
[![Health](https://phpackages.com/badges/lokielse-aliyun-open-api-mts/health.svg)](https://phpackages.com/packages/lokielse-aliyun-open-api-mts)
```

PHPackages © 2026

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