PHP code example of sabao / aliyun-log-php-sdk

1. Go to this page and download the library: Download sabao/aliyun-log-php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sabao / aliyun-log-php-sdk example snippets




use Aliyun\Log\Client;
use Aliyun\Log\Models\Request\ListLogstoresRequest;

$client = new Client('your-endpoint', 'your-access-key-id', 'your-access-key-secret');
$request = new ListLogstoresRequest('your-project');
$response = $client->listLogstores($request);