uuu9 / aliyun-sdk-sls
Aliyun Log Service PHP SDK
Installs: 84
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/uuu9/aliyun-sdk-sls
README
Aliyun Log Service PHP SDK
API VERSION
0.6.1
SDK RELEASE TIME
2018-02-18
Introduction
阿里云日志服务SDK(www.aliyun.com/product/sls)
Summary
$client = new Client(endpoint, accessKey, secretKey); $logItem = new LogItem(); $logItem->setTime(time()); $logItem->setContents(['apilog' => json_encode($record)]); $req = new PutLogsRequest(project, logStore, 'topic', null, [$logItem]); $client->putLogs($req);
Environment Requirement
PHP >=7.0.12