PHPackages                             sinri/aliyun-log-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sinri/aliyun-log-php-sdk

ActiveLibrary

sinri/aliyun-log-php-sdk
========================

Aliyun Log SDK for PHP with Sinri Fix

1.0.4(5y ago)0150MITPHP

Since Jun 27Pushed 5y agoCompare

[ Source](https://github.com/sinri/aliyun-log-php-sdk)[ Packagist](https://packagist.org/packages/sinri/aliyun-log-php-sdk)[ RSS](/packages/sinri-aliyun-log-php-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)DependenciesVersions (4)Used By (0)

Aliyun Log Service PHP SDK
==========================

[](#aliyun-log-service-php-sdk)

令和之初，为鲵苦阿里云SDK之PHP版本久矣，遂工之以魔改，使准行于PHP 5.6之环境，并置其包于Packagist，以善天下苍生。

Release
-------

[](#release)

`composer require sinri/aliyun-log-php-sdk`

[![Package](https://camo.githubusercontent.com/e351f51c8ffd36587f262e353e8a249f483e5ead04d5e76fb5b33e0ce51dee48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696e72692f616c6979756e2d6c6f672d7068702d73646b2e737667)](https://camo.githubusercontent.com/e351f51c8ffd36587f262e353e8a249f483e5ead04d5e76fb5b33e0ce51dee48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696e72692f616c6979756e2d6c6f672d7068702d73646b2e737667)

---

以下为阿里SDK介绍原文

---

API VERSION
-----------

[](#api-version)

0.6.1

SDK RELEASE TIME
----------------

[](#sdk-release-time)

2018-02-18

Introduction
------------

[](#introduction)

Log Service SDK for PHP，used to set/get log data to Aliyun Log Service([www.aliyun.com/product/sls](http://www.aliyun.com/product/sls)).

API Reference: [中文](https://help.aliyun.com/document_detail/29007.html) [ENGLISH](https://www.alibabacloud.com/help/doc-detail/29007.htm)

### Summary

[](#summary)

1. Request-Request style Restful API interface
2. Use Protocol buffer to send data
3. Data can be compressed when sending to server
4. Aliyun\_Log\_Exception will be thrown if any error happen
5. Introduce simple logger for submit log easily with different levels
6. Create local log cache to submit several logs in single http post.

Environment Requirement
-----------------------

[](#environment-requirement)

1. PHP 7.1.7 and later：Master Branch
2. PHP 5.2+：[Tree v1.0](https://github.com/aliyun/aliyun-log-php-sdk/tree/v1.0)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~170 days

Total

3

Last Release

2167d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f21c380187798de639192557cfc054683355c6f8c1649cff213fee795590831?d=identicon)[sinri](/maintainers/sinri)

---

Top Contributors

[![sinri](https://avatars.githubusercontent.com/u/5821330?v=4)](https://github.com/sinri "sinri (11 commits)")[![suntingtao007](https://avatars.githubusercontent.com/u/24544188?v=4)](https://github.com/suntingtao007 "suntingtao007 (7 commits)")[![wind1719](https://avatars.githubusercontent.com/u/5468452?v=4)](https://github.com/wind1719 "wind1719 (3 commits)")[![Fnck](https://avatars.githubusercontent.com/u/5467617?v=4)](https://github.com/Fnck "Fnck (2 commits)")[![mayunlei](https://avatars.githubusercontent.com/u/11693020?v=4)](https://github.com/mayunlei "mayunlei (2 commits)")[![sandbeach](https://avatars.githubusercontent.com/u/2006325?v=4)](https://github.com/sandbeach "sandbeach (1 commits)")

### Embed Badge

![Health badge](/badges/sinri-aliyun-log-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/sinri-aliyun-log-php-sdk/health.svg)](https://phpackages.com/packages/sinri-aliyun-log-php-sdk)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
