PHPackages                             frmaxm/simple-event-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. [Database &amp; ORM](/categories/database)
4. /
5. frmaxm/simple-event-logger

ActiveYii2-extension[Database &amp; ORM](/categories/database)

frmaxm/simple-event-logger
==========================

Component is a Yii 2 wrapper of Log

0161[1 PRs](https://github.com/frmaxm/simple-event-logger/pulls)PHP

Since Feb 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/frmaxm/simple-event-logger)[ Packagist](https://packagist.org/packages/frmaxm/simple-event-logger)[ RSS](/packages/frmaxm-simple-event-logger/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Simple Event Logger.
=========================

[](#yii2-simple-event-logger)

This component is a Yii 2 wrapper of Log.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist frmaxm/simple-event-log "dev-master"

```

or add

```
"frmaxm/simple-event-log": "dev-master"

```

to the require section of your `composer.json` file.

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

[](#configuration)

Edit `bootstrap` section in your application config file:

```
'bootstrap' => [
    'model_log'=>[
        'class'=>'frmaxm\logger\bootstrap\ModelLogBootstrap',
        'category'=>'admin',
    ],
    'log'=>[
        'class'=>'yii\log\Logger',
        'flushInterval' => 50,
    ],
]
```

Edit `log` component in your application config file:

```
'log' => [
    'traceLevel' => YII_DEBUG ? 3 : 0,
    'targets' => [
        [
            'class' => 'yii\log\DbTarget',
            'categories' => ['model.*'],
        ],
    ],
]
```

Add new table `EventLog` to your database.

Usage
-----

[](#usage)

Run module migration:

```
php yii migrate --migrationPath=@frmaxm/simple-event-logger/migrations
```

Info
----

[](#info)

All events on the model will be recorded in the Event Log table. This will allow you to see all the user's actions.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

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://avatars.githubusercontent.com/u/1052711?v=4)[Max Frolov](/maintainers/frmaxm)[@frmaxm](https://github.com/frmaxm)

---

Top Contributors

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

---

Tags

databasemysqlphpyii2

### Embed Badge

![Health badge](/badges/frmaxm-simple-event-logger/health.svg)

```
[![Health](https://phpackages.com/badges/frmaxm-simple-event-logger/health.svg)](https://phpackages.com/packages/frmaxm-simple-event-logger)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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