PHPackages                             hollisho/lumen-sls - 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. hollisho/lumen-sls

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

hollisho/lumen-sls
==================

Aliyun SLS Log For Lumen

1.1.1(4y ago)0397MITPHPPHP ~7.0

Since Apr 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hollisho/lumen-sls)[ Packagist](https://packagist.org/packages/hollisho/lumen-sls)[ Docs](https://github.com/hollisho/lumen-sls)[ RSS](/packages/hollisho-lumen-sls/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Aliyun SLS Log For Lumen
========================

[](#aliyun-sls-log-for-lumen)

Install
-------

[](#install)

Via Composer

```
$ composer require hollisho/lumen-sls
```

Config
------

[](#config)

Add following service providers into your providers array in `bootstrap/app.php`

```
$app->configure('sls');
$app->register(hollisho\lumensls\LumenSLSServiceProvider::class);
```

Add following service providers into your providers array in `config/logging.php`

```
'sls' => [
    'driver' => 'daily',
    'path' => storage_path('logs/lumen.log'),
    'tap' => [\hollisho\lumensls\Logging\SLSFormatter::class],
    'level' => 'debug',
    'days' => 1,
],
```

Edit your `.env` file

```
LOG_CHANNEL=sls

ALI_LOGSTORE_ENDPOINT=xxxxxxxx
ALI_LOGSTORE_ACCESS_KEY_ID=xxxxxxxx
ALI_LOGSTORE_ACCESS_KEY_SECRET=xxxxxxxx
ALI_LOGSTORE_PROJECT_NAME=my-project
ALI_LOGSTORE_NAME=test-store
```

You should update `ALI_LOGSTORE_ENDPOINT` to `internal endpoint` in production mode

Run `php artisan lumen-sls:publish-config` to publish configs (`config/sls.php`)

Make configuration changes if needed

Usage
-----

[](#usage)

First create a project and store at [Aliyun SLS Console](https://sls.console.aliyun.com/)

Then update `ALI_LOGSTORE_ENDPOINT`, `ALI_LOGSTORE_PROJECT_NAME`, `ALI_LOGSTORE_NAME` in `.env`

Push a test message to queue

```
Log::info('Test Message', ['myname'=>'hollis']);

//or you can use `app('sls')`

app('sls')->putLogs([
	'type' => 'test',
	'message' => json_encode(['This should use json_encode'])
]);

//or you can use `SLSLog` directly

SLSLog::putLogs([
	'type' => 'test',
	'message' => json_encode(['This should use json_encode'])
]);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

4

Last Release

1603d ago

Major Versions

1.1.1 → 5.x-dev2021-12-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e8e63d951619620f1fabe34874623212834045e7ce9b77da8e47769c6e3d7a4?d=identicon)[hollisho](/maintainers/hollisho)

---

Top Contributors

[![hollisho](https://avatars.githubusercontent.com/u/13307208?v=4)](https://github.com/hollisho "hollisho (27 commits)")

---

Tags

loglaravelcloudlumendriveraliyunSLSlumen-sls

### Embed Badge

![Health badge](/badges/hollisho-lumen-sls/health.svg)

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

###  Alternatives

[lokielse/laravel-sls

Aliyun SLS Log For Laravel

223.7k](/packages/lokielse-laravel-sls)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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