New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

terranc/laravel-aliyun-sls

1,266
Install
composer require terranc/laravel-aliyun-sls
Latest Version:1.3
PHP:^8.0
Laravel:9 – 12
Older releases:8
Last Updated:Aug 24, 2025
Links: GitHub  ·  Packagist
Maintainer: terranc

laravel-aliyun-sls

Using

composer require islenbo/laravel-aliyun-sls

add service provider to app.php

<?php
use \Islenbo\LaravelAliyunSls\Providers\LaravelAliyunSlsProvider;

return [
    // ...
    'providers' => [
        /*
         * Package Service Providers...
         */
        LaravelAliyunSlsProvider::class,
    ],
    // ...
];

add config to logging.php

<?php
return [
    // ...

    // Aliyun SLS config
    'aliyun-sls' => [
        'endpoint' => env('ALIYUN_LOG_ENDPOINT'),
        'accessKeyId' => env('ALIYUN_LOG_ACCESSKEYID'),
        'accessKey' => env('ALIYUN_LOG_ACCESSKEY'),
        'project' => env('ALIYUN_LOG_PROJECT'),
        'logstore' => env('ALIYUN_LOG_LOGSTORE'),
        'bufferLimit' => env('ALIYUN_LOG_BUFFER_LIMIT', 5),
        'formatter' => \Islenbo\LaravelAliyunSls\Formatters\AliyunSlsFormatter::class
    ],

    // ...
    'channels' => [
        'stack' => [
            'driver' => 'stack',
            // assign aliyun-sls
            'channels' => ['aliyun-sls'],
            'ignore_exceptions' => false,
            'tap' => [
            ]
        ],
        // ...
    ],
];

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
1.3 ^8.0 ^9.0|^10.0|^11.0|^12.0
1.2 ^8.0 ^9.0|^10.0
1.1 ^7.3|^8.0 ^8.0|^9.0
1.0 ^7.3|^8.0 ^8.0