This topic describes how to install ApsaraVideo Media Processing (MPS) SDK for PHP.
- Download the source code.
git clone https://github.com/aliyun/aliyun-openapi-php-sdk.git
- Add a reference.
If MPS SDK for PHP is downloaded to
path/to/aliyun-openapi-php-sdk
, run the following command:require_once 'path/to/aliyun-openapi-php-sdk/aliyun-php-sdk-core/Config.php';
If MPS SDK for PHP is downloaded toaliyun-openapi-php-sdk
, run the following command:require_once 'aliyun-openapi-php-sdk/aliyun-php-sdk-core/Config.php';
- Add the autoloader for MPS SDK for PHP.
Modify the Config.php file under the
aliyun-openapi-php-sdk/aliyun-php-sdk-core
directory.Add
Autoloader::addAutoloadPath("aliyun-php-sdk-mts");
after//config sdk auto load path
.