Before you can use Log Service SDK for PHP to call the API operations of Log Service, you must install Log Service SDK for PHP. This topic describes how to install Log Service SDK for PHP.

Prerequisites

  • Log Service is activated. For more information, see Activate Log Service.
  • An AccessKey pair is created and obtained. An Alibaba Cloud account has permissions to call all API operations. Therefore, security risks may arise if you use the AccessKey pair of an Alibaba Cloud account. We recommend that you log on as a RAM user that has permissions to call API operations or perform routine O&M. For more information, see AccessKey pair.
  • A PHP development environment is installed. For more information, visit the official website of PHP.

    Log Service SDK for PHP supports PHP 5.2.1 and later versions. You can run the php -v command to check the PHP version that you install.

Installation

  1. Download the latest installation package of Log Service SDK for PHP.
  2. Decompress the aliyun-log-php-sdk-master.zip installation package to a specified directory.
    Log Service SDK for PHP does not require additional installation steps. Log Service SDK for PHP contains SDK code, a set of third-party dependencies, and an Autoloader class. This simplifies the process of calls.

What to do next

Get started with Log Service SDK for PHP