PHPackages                             betsuno/yii2-log-discord-target - 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. betsuno/yii2-log-discord-target

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

betsuno/yii2-log-discord-target
===============================

Discord log target for Yii2

1.0(6y ago)1223MITPHP

Since Apr 5Pushed 6y ago2 watchersCompare

[ Source](https://github.com/BetsuNo/yii2-log-discord-target)[ Packagist](https://packagist.org/packages/betsuno/yii2-log-discord-target)[ RSS](/packages/betsuno-yii2-log-discord-target/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Discord log target for Yii2
===========================

[](#discord-log-target-for-yii2)

This is the PHP [Yii2](https://github.com/yiisoft/yii2) plugin for sending log of a yii application through the Discord [WebHook API](https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks).

### Important

[](#important)

You should avoid to use this target on a frequent events because of restriction in 30 messages per 60 seconds for the web-hooks.

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

[](#installation)

Execute following command in shell:

```
composer require betsuno/yii2-log-discord-target
```

Or add following in your `composer.json` require section, and run `composer install` in your shell

```
"betsuno/yii2-log-discord-target": "*"

```

Configuration and usage
-----------------------

[](#configuration-and-usage)

Add something as following in your yii config into the `components` section

```
'log' => [
    'class'     => '\betsuno\yii\log\DiscordTarget',
    'url'       => 'WEBHOOK_URL',                 // Your WebHook URL
    //'pattern' => "{category}: {level}\n{text}", // Optionally you can override default message pattern
]

```

More info about log targets may be found [here](https://www.yiiframework.com/doc/guide/2.0/en/runtime-logging#log-targets)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

2229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bb28e87428383d3adaf380f079a5971ccd28b3c9f9f2183870d2f4e219fc9d4?d=identicon)[BetsuNo](/maintainers/BetsuNo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/betsuno-yii2-log-discord-target/health.svg)

```
[![Health](https://phpackages.com/badges/betsuno-yii2-log-discord-target/health.svg)](https://phpackages.com/packages/betsuno-yii2-log-discord-target)
```

###  Alternatives

[bedezign/yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.

201657.4k4](/packages/bedezign-yii2-audit)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)

PHPackages © 2026

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