PHPackages                             aliyun-sdk-project/php-log - 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. aliyun-sdk-project/php-log

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

aliyun-sdk-project/php-log
==========================

1.2(1y ago)085PHP

Since Aug 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aliyun-sdk-project/php-log)[ Packagist](https://packagist.org/packages/aliyun-sdk-project/php-log)[ RSS](/packages/aliyun-sdk-project-php-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

说明
--

[](#说明)

原来阿里云相关的日志很不好用，不能用composer 管理不方便，所以写了一个composer包进行管理，现在支持框架

- Yii2
- lavarel

安装
--

[](#安装)

```
composer require aliyun-sdk-project/php-log

```

Yii2 配置
-------

[](#yii2-配置)

```
'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                [
                    'class' => 'AliyunPHPLog\Yii2LogTarget',
                    'levels' => ['error', 'warning', 'info'],
                    'config' => [
                        'endpoint' => 'http://cn-hangzhou.log.aliyuncs.com/',
                        'accessKeyId' => '',
                        'accessKey' => '',
                        'project' => '',
                        'logstore' => '',
                    ],
                ],
            ],
        ],

```

project 是创建日志的项目名称。logstore 存储名称

Lavarel 配置
----------

[](#lavarel-配置)

```
'aliyun' => [
            'driver' => 'monolog',
            'level' => 'debug',
            'handler' => AliyunPHPLog\LaravelLogHandler::class,
            'handler_with' => [
                'endpoint' => env('ALIYUN_ENDPOINT', 'http://cn-shenzhen.log.aliyuncs.com/'),
                'accessKeyId' => '',
                'accessKey' => '' ,
                'project' => '',
                'logstore' => '',
            ],
        ],

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6397eacfb2d02312520eeb74bcd3cc8f86aff55c2c053c562a3de0cced656b69?d=identicon)[liuzhang](/maintainers/liuzhang)

---

Top Contributors

[![liuzhang](https://avatars.githubusercontent.com/u/3394759?v=4)](https://github.com/liuzhang "liuzhang (1 commits)")

### Embed Badge

![Health badge](/badges/aliyun-sdk-project-php-log/health.svg)

```
[![Health](https://phpackages.com/badges/aliyun-sdk-project-php-log/health.svg)](https://phpackages.com/packages/aliyun-sdk-project-php-log)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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