PHPackages                             ruturajmaniyar/yii2-audit-log - 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. ruturajmaniyar/yii2-audit-log

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

ruturajmaniyar/yii2-audit-log
=============================

Yii2 audit record and database changes details

41.1k7[1 issues](https://github.com/ruturajmaniyar/yii2-audit-log/issues)PHP

Since Jun 15Pushed 6y ago3 watchersCompare

[ Source](https://github.com/ruturajmaniyar/yii2-audit-log)[ Packagist](https://packagist.org/packages/ruturajmaniyar/yii2-audit-log)[ RSS](/packages/ruturajmaniyar-yii2-audit-log/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ruturajmaniyar/yii2-audit-log
=============================

[](#ruturajmaniyaryii2-audit-log)

Yii2 audit record and database changes details

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

[](#installation)

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

Either run

```
composer require --prefer-dist ruturajmaniyar/yii2-audit-log:"dev-master"

```

or

```
php composer.phar require --prefer-dist ruturajmaniyar/yii2-audit-log:"dev-master"

```

or add

```
"ruturajmaniyar/yii2-audit-log": "dev-master"

```

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

##### Migration

[](#migration)

To run migration to create "tbl\_audit\_entry" table in your db.

```
php yii migrate/up --migration-path "@vendor/ruturajmaniyar/yii2-audit-log/src/migrations/"
```

or

```
you can also import "tbl_audit_entry.sql" directly in your DB.

```

##### Module

[](#module)

Add Audit Entry module in your config file

```
....
'modules' => [
    ......
    'auditlog' => [
                'class' => 'ruturajmaniyar\mod\audit\AuditEntryModule'
    ],
    ......
],
....
```

##### Component

[](#component)

Add DateTimeHelper components in your config file

```
....
'components' => [
    ......
    'dateTimeConversion' => [
                'class' => 'ruturajmaniyar\mod\audit\components\DateTimeHelper'
    ],
    ......
],
....
```

Usage
-----

[](#usage)

Use get audit log activities or records, attached "AuditEntryBehaviors" with your models as belows:

```
use ruturajmaniyar\mod\audit\behaviors\AuditEntryBehaviors;
use yii\db\ActiveRecord;

class User extends ActiveRecord {

    public function behaviors(){
        return [
            ....
            'auditEntryBehaviors' => [
                'class' => AuditEntryBehaviors::class
             ],
             ....
        ];
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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/f36d6f1c55e4b3eb3ef29f2fe0bbec26782ef88656f268855080fffe5921363f?d=identicon)[ruturajmaniyar](/maintainers/ruturajmaniyar)

---

Top Contributors

[![ruturaj-ecosmob](https://avatars.githubusercontent.com/u/30598785?v=4)](https://github.com/ruturaj-ecosmob "ruturaj-ecosmob (6 commits)")[![ruturajmaniyar](https://avatars.githubusercontent.com/u/9863397?v=4)](https://github.com/ruturajmaniyar "ruturajmaniyar (6 commits)")

### Embed Badge

![Health badge](/badges/ruturajmaniyar-yii2-audit-log/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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