This topic describes how to install ApsaraVideo Media Processing (MPS) SDK V2.0 for PHP.
Prerequisites
PHP 5.6 or later is installed.
Composer is installed globally. For more information, see Globally.
- Important
The version of PHP used to install Alibaba Cloud SDK by using Composer must be earlier than or equal to the version of PHP used to run Alibaba Cloud SDK. For example, the vendor folder generated after Alibaba Cloud SDK is installed in PHP 7.2 can be used only in PHP 7.2 or later. If the vendor folder is copied to PHP 5.6, the dependency is incompatible with PHP 5.6.
If you fail to install Composer due to network issues, you can run the following command to use the full image of Composer provided by Alibaba Cloud:
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