le2le/aliyun-log 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

le2le/aliyun-log

Composer 安装命令:

composer require le2le/aliyun-log

包简介

README 文档

README

阿里云官方sdk(https://github.com/aliyun/aliyun-log-php-sdk)的composer版

composer require le2le/aliyun-log


$endpoint= 'http://cn-shenzhen.log.aliyuncs.com';
$accessKeyId = '1';
$accessKey = '2';
$project = '3';
$logstore = '4';
$token= '';
$client = new Le2le\AliyunLog\Client($endpoint, $accessKeyId, $accessKey,$token);

$topic = 'TestTopic';

$array = [['342423']];
$logitems = [];
foreach ($array as $one)
{
$logItem = new \Le2le\AliyunLog\Models\LogItem();
$logItem->setTime(time());
$logItem->setContents($one);
$logitems[] = $logItem;
}

$request = new Le2le\AliyunLog\Models\Request\PutLogsRequest($project, $logstore,
$topic, null, $logitems);

$response = '';
try {
$response = $client->putLogs($request);
} catch (Le2le\AliyunLog\Exception $ex) {

var_dump($ex);
} catch (\Exception $ex) {

var_dump($ex);
}

var_dump($response);

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-09-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固