uuu9/aliyun-sdk-sls

阿里云日志服务PHP SDK

v1.0 2022-09-28 14:36 UTC

This package is auto-updated.

Last update: 2024-09-10 12:08:41 UTC


README

阿里云日志服务PHP SDK

API版本

0.6.1

SDK发布时间

2018-02-18

简介

阿里云日志服务SDK(www.aliyun.com/product/sls)

摘要

$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);

环境要求

PHP >=7.0.12