This topic describes the prerequisites for installing the original PHP SDK. This topic also describes how to install and uninstall the original PHP SDK.
The original PHP SDK is no longer maintained. We recommend that you use the upgraded SDK that supports Composer. For more information, see Installation.
ApsaraVideo VOD is activated. For more information, see Activate ApsaraVideo VOD.
PHP 5.3 or later is installed. You can run the
php -v command to view the current PHP version. For more information about how to install
PHP, visit the PHP official website.
Install PHP SDK
- Create a folder named aliyun-php-sdk in your PHP project.
- Visit aliyun-openapi-php-sdk to download the source code. Decompress the downloaded package and copy the aliyun-php-sdk-core and aliyun-php-sdk-vod folders to the aliyun-php-sdk directory.
|1||The PHP SDK directory.|
|2||The application file.
Note In actual practice, replace the Demo.php file in the preceding figure with your actual application file.
Uninstall PHP SDK
Delete the local PHP SDK directory.