Log Service SDK for PHP encapsulates all API operations of Log Service. You can use Log Service SDK for PHP to call API operations of Log Service in a convenient manner.

Release notes

For more information, see aliyun-log-php-sdk.

Sample code

Log Service SDK for PHP provides a variety of sample code for your reference and use. The following table provides links to the sample code.
GitHub source code Description
loggerSample.php Examples on how to write logs, query logs, create data shipping tasks, retry data shipping tasks, and manage shards
sample.php Examples on how to write logs, query logs and log distribution, manage shards, and perform batch queries