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 today

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

23

—

LowBetter than 26% of packages

Maintenance45

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

424d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12230565?v=4)[pangxp](/maintainers/pangxp)[@pangxp](https://github.com/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.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M275](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M342](/packages/open-telemetry-sdk)

PHPackages © 2026

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