令和之初,为鲵苦阿里云SDK之PHP版本久矣,遂工之以魔改,使准行于PHP 5.6之环境,并置其包于Packagist,以善天下苍生。
composer require sinri/aliyun-log-php-sdk
以下为阿里SDK介绍原文
0.6.1
2018-02-18
Log Service SDK for PHP,used to set/get log data to Aliyun Log Service(www.aliyun.com/product/sls).
- Request-Request style Restful API interface
- Use Protocol buffer to send data
- Data can be compressed when sending to server
- Aliyun_Log_Exception will be thrown if any error happen
- Introduce simple logger for submit log easily with different levels
- Create local log cache to submit several logs in single http post.
- PHP 7.1.7 and later:Master Branch
- PHP 5.2+:Tree v1.0