PHPackages                             wangyipinglove/lumen-alilog - 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. wangyipinglove/lumen-alilog

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

wangyipinglove/lumen-alilog
===========================

Aliyun SLS Log For Lumen

067PHP

Since Jul 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wangyipinglove/lumen-alilog)[ Packagist](https://packagist.org/packages/wangyipinglove/lumen-alilog)[ RSS](/packages/wangyipinglove-lumen-alilog/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

Install
-------

[](#install)

Via Composer

```
$ composer require wangyiping/lumen-alilog
```

Config
------

[](#config)

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

```
$app->configure('sls');
$app->register(Wangyipinglove\LumenAliLog\Logging\SLSFormatter::class);
```

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-app
```

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'=>'wangyiping']);

//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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/db9450626212a0440c4d1535d5d2ec7f78c1fe78c09f15e6bf01fa44df3d1ae7?d=identicon)[wangyiping](/maintainers/wangyiping)

---

Top Contributors

[![w-1-p](https://avatars.githubusercontent.com/u/19568878?v=4)](https://github.com/w-1-p "w-1-p (10 commits)")

### Embed Badge

![Health badge](/badges/wangyipinglove-lumen-alilog/health.svg)

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

###  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)
