PHPackages                             brezgalov/yii2-api-logger - 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. brezgalov/yii2-api-logger

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

brezgalov/yii2-api-logger
=========================

logs api input and output

v1.0.2(4y ago)16MITPHPPHP &gt;=7.2.0

Since Feb 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Brezgalov/yii2-api-logger)[ Packagist](https://packagist.org/packages/brezgalov/yii2-api-logger)[ RSS](/packages/brezgalov-yii2-api-logger/feed)WikiDiscussions master Synced 1mo ago

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

Логер использования API
-----------------------

[](#логер-использования-api)

> composer require brezgalov/yii2-api-logger

Из коробки доступно логирование через бд. Для хранения логов нужно применить миграцию

```
php yii migrate --migrationPath="vendor/brezgalov/yii2-api-logger/migrations"

```

Подключение логера к приложению

```
'bootstrap' => [
    function (\yii\web\Application $app) {
        $app->attachBehavior('apiLogger', [
            'class' => ApiLoggerBehavior::class,
            'logStorage' => [
                'class' => DbLogStorage::class,
                'dbComponent' => $app->get('api_logs_db')
            ],
        ]);
    },
    ...
],

```

Логер использует следующие ENV переменные

```
APP_NAME

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

1490d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/brezgalov-yii2-api-logger/health.svg)

```
[![Health](https://phpackages.com/badges/brezgalov-yii2-api-logger/health.svg)](https://phpackages.com/packages/brezgalov-yii2-api-logger)
```

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