PHPackages                             mehulpatel/vspl - 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. mehulpatel/vspl

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

mehulpatel/vspl
===============

Yii2 audit record and database changes details

0278PHP

Since Jan 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mehulpatel/vspl)[ Packagist](https://packagist.org/packages/mehulpatel/vspl)[ RSS](/packages/mehulpatel-vspl/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

mehulpatel/vspl
===============

[](#mehulpatelvspl)

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 mehulpatel/vspl:"dev-master"

```

or

```
php composer.phar require --prefer-dist mehulpatel/vspl:"dev-master"

```

or add

```
"mehulpatel/vspl": "dev-master"

```

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

##### Migration or Table

[](#migration-or-table)

```
you need to import "audit_entry.sql" directly in your DB.

```

##### Module

[](#module)

Add Audit Entry module in your config file

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

##### Component

[](#component)

Add DateTimeHelper components in your config file

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

Usage
-----

[](#usage)

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

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

class User extends ActiveRecord {

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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/79fb17d3c912447540c9094e371740d4ad122b977086aa6bff7d70e61c33d0cf?d=identicon)[mehulpatel](/maintainers/mehulpatel)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mehulpatel-vspl/health.svg)

```
[![Health](https://phpackages.com/badges/mehulpatel-vspl/health.svg)](https://phpackages.com/packages/mehulpatel-vspl)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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