PHPackages                             pythagor/yii2-mongolog - 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. pythagor/yii2-mongolog

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

pythagor/yii2-mongolog
======================

Yii2 Module for Web Application user's activity log at MongoDB

171PHP

Since Nov 22Pushed 11y ago2 watchersCompare

[ Source](https://github.com/pythagor/yii2-mongolog)[ Packagist](https://packagist.org/packages/pythagor/yii2-mongolog)[ RSS](/packages/pythagor-yii2-mongolog/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-mongolog
=============

[](#yii2-mongolog)

The **yii2-mongolog** is a Yii2 module for store web application user's activity log in the MongoDB.

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

[](#installation)

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

Configuration
-------------

[](#configuration)

1. Add **mongolog** module into **modules** section of your config.
2. Set your MongoDB collection name for store log data.
3. Set correct **dsn** string to connect with right MongoDB instance and database.
4. Add **mongolog** module into **bootstrap** section of your config.

### Example

[](#example)

```
'modules' => [
    // ...
    'mongolog' => [
        'class' => 'pythagor\mongolog\Module',
        'logCollection' => 'YourCollectionName',
        'components' => [
            'db_log' => [
                'class' => 'yii\mongodb\Connection',
                'dsn' => 'mongodb://localhost:27017/YourDatabaseName',
            ],
        ],
    ],
],
'bootstrap' => [
    // ...
    'mongolog',
],
```

License
-------

[](#license)

**yii2-mongolog** is released under the MIT License.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4488eb3920c933793a0a94e115d6452a0aeb63f2963d855d604db33d3bb53e69?d=identicon)[pythagor](/maintainers/pythagor)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/pythagor-yii2-mongolog/health.svg)

```
[![Health](https://phpackages.com/badges/pythagor-yii2-mongolog/health.svg)](https://phpackages.com/packages/pythagor-yii2-mongolog)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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