Install ApsaraVideo Media Processing (MPS) SDK V2.0 for PHP using Composer.
-
Prerequisites
Before you begin, make sure you have:
PHP 5.6 or later
Composer installed globally. For more information, see Globally.
-
Important
The PHP version used to install the SDK must match or be earlier than the PHP version used to run it. For example, if you install the SDK under PHP 7.2, the generated vendor folder works only in PHP 7.2 or later. Copying that vendor folder to a PHP 5.6 environment causes dependency incompatibility errors.
If Composer installation fails due to network issues, run the following command to switch to the Alibaba Cloud Composer mirror:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
Download the SDK
Download MPS SDK for PHP from Packagist.
Install the SDK
composer require alibabacloud/mts-20140618 3.0.0