PHPackages                             aliyunpcs/sls-2 - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. aliyunpcs/sls-2

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

aliyunpcs/sls-2
===============

The Php SDK of Aliyuncs SLS log service(PSR-4)

2.0.3(1y ago)01MITPHPPHP &gt;=7.2

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pangxp/aliyunpcs_sls-2)[ Packagist](https://packagist.org/packages/aliyunpcs/sls-2)[ RSS](/packages/aliyunpcs-sls-2/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

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

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

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

[](#api-version)

2.0.0

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

[](#sdk-release-time)

2024-05-28

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

[](#sdk-release-update-time)

2025-04-28

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

24

—

LowBetter than 32% of packages

Maintenance49

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~3 days

Total

4

Last Release

376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/392bbcbde06234bef0770af6b825c7acb35b766e5d6af774300acd71b69fbded?d=identicon)[pangxp](/maintainers/pangxp)

---

Top Contributors

[![pangxp](https://avatars.githubusercontent.com/u/12230565?v=4)](https://github.com/pangxp "pangxp (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aliyunpcs-sls-2/health.svg)

```
[![Health](https://phpackages.com/badges/aliyunpcs-sls-2/health.svg)](https://phpackages.com/packages/aliyunpcs-sls-2)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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