PHPackages                             ranvk/yii2-aliyun-logtarget - 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. ranvk/yii2-aliyun-logtarget

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

ranvk/yii2-aliyun-logtarget
===========================

Aliyun Logtarget for Yii2

v18.3.15(8y ago)15.0k1BSD-3-ClausePHPPHP &gt;=5.5

Since Mar 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ranvk/yii2-aliyun-logtarget)[ Packagist](https://packagist.org/packages/ranvk/yii2-aliyun-logtarget)[ Docs](https://github.com/ranvk/yii2-aliyun-logtarget)[ RSS](/packages/ranvk-yii2-aliyun-logtarget/feed)WikiDiscussions master Synced 1mo ago

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

yii2-aliyun-logtarget
=====================

[](#yii2-aliyun-logtarget)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ranvk/yii2-aliyun-logtarget

```

or add

```
"ranvk/yii2-aliyun-logtarget": "^18.3"
```

Usage
-----

[](#usage)

To use this extension, simply add the following code in your application configuration:

```
return [
    //....
    'components' => [
        'log' => [
            'targets' => [
                [
                    'levels' => ['error', 'warning', 'info'],
                    'class' => 'Ranvk\Yii2AliyunLogtarget\AliyunLogTarget',
                    'logstore' => 'your_logstore',
                    'topic' => YII_ENV,
                    'project' => 'your_project',
                    'accessKeyId' => 'your_accessKeyId',
                    'accessKeySecret' => 'your_accessKeySecret',
                    'endpoint' => 'aliyun_endpoint',
                ],

            ],
        ],
    ],
];
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2981d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/69120042a22096cc582950eaacdc223f4e34856306158e44f427e26975598503?d=identicon)[ranvk](/maintainers/ranvk)

---

Top Contributors

[![ranvk](https://avatars.githubusercontent.com/u/10215817?v=4)](https://github.com/ranvk "ranvk (18 commits)")

---

Tags

logyii2aliyunloglogtarget

### Embed Badge

![Health badge](/badges/ranvk-yii2-aliyun-logtarget/health.svg)

```
[![Health](https://phpackages.com/badges/ranvk-yii2-aliyun-logtarget/health.svg)](https://phpackages.com/packages/ranvk-yii2-aliyun-logtarget)
```

###  Alternatives

[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)

PHPackages © 2026

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