PHPackages                             devsdawn/think-aliyunsls - 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. devsdawn/think-aliyunsls

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

devsdawn/think-aliyunsls
========================

Aliyun sls log driver for thinkphp 6

v1.0.2(3y ago)333MITPHP

Since Sep 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/devsdawn/think-aliyunsls)[ Packagist](https://packagist.org/packages/devsdawn/think-aliyunsls)[ RSS](/packages/devsdawn-think-aliyunsls/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

think-aliyunsls
===============

[](#think-aliyunsls)

[![](https://camo.githubusercontent.com/88282dde8dad02bf7b9775d0bcc8d698c7d2ad6b844ad95c26cd8adaf890f117/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646576736461776e2f7468696e6b2d616c6979756e736c732e737667)](https://packagist.org/packages/devsdawn/think-aliyunsls)[![](https://camo.githubusercontent.com/16faff889e7003ebf0af55215be748ffd201ee59b4d3f592549e95ee0a2ee816/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646576736461776e2f7468696e6b2d616c6979756e736c732e737667)](https://packagist.org/packages/devsdawn/think-aliyunsls)[![](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)

ThinkPHP 6 阿里云日志服务日志驱动

安装
--

[](#安装)

```
composer require devsdawn/think-aliyunsls

```

配置
--

[](#配置)

config/log.php

```
// 默认日志记录通道
'default'      => 'aliyunsls',
// 日志通道列表
'channels'     => [
    'aliyunsls' => [
        // 日志记录方式
        'type' => 'Aliyunsls',
        // 阿里云 endpoint
        'endpoint' => 'http://cn-beijing.sls.aliyuncs.com/',
        // 阿里云 AccessKey ID
        'access_key_id' => '',
        // 阿里云 AccessKey Secret
        'access_key_secret' => '',
        // 项目名称
        'project' => '',
        // logstore 名称
        'logstore' => '',
        // source 标识
        'source' => '',
        // topic 标识
        'topic' => '',
        // 日志处理
        'processor' => null,
        // 关闭通道日志写入
        'close' => false,
        // 使用JSON格式记录
        'json' => true,
        // 是否实时写入
        'realtime_write' => false,
    ],
]
```

协议
--

[](#协议)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/896c3689592d2cce5bfbc45a5e5d9341f4b327d44fe4922063176877e7455f43?d=identicon)[devsdawn](/maintainers/devsdawn)

---

Tags

aliyundriverlogslsthinkphp

### Embed Badge

![Health badge](/badges/devsdawn-think-aliyunsls/health.svg)

```
[![Health](https://phpackages.com/badges/devsdawn-think-aliyunsls/health.svg)](https://phpackages.com/packages/devsdawn-think-aliyunsls)
```

###  Alternatives

[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[codemix/yii2-streamlog

A Yii 2 log target for streams in URL format

531.4M6](/packages/codemix-yii2-streamlog)

PHPackages © 2026

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