PHPackages                             forex-formula/yii2-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. forex-formula/yii2-log

ActiveYii2-extension

forex-formula/yii2-log
======================

Package

8.0.4(4y ago)0813MITPHPPHP ^7.1.3

Since Apr 9Pushed 4y agoCompare

[ Source](https://github.com/forex-formula/yii2-log)[ Packagist](https://packagist.org/packages/forex-formula/yii2-log)[ RSS](/packages/forex-formula-yii2-log/feed)WikiDiscussions release Synced today

READMEChangelog (1)Dependencies (7)Versions (177)Used By (0)

**Installation**

The preferred way to install this extension is through composer.

Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json. Either run

```
$ php composer.phar require pvsaintpe/yii2-log "5.*"
```

or add

```
"pvsaintpe/yii2-log": "5.*"
```

to the require section of your composer.json file.

**Additional information**

All base models and query must be inherited from:

`ActiveRecord extends \pvsaintpe\log\components\ActiveRecord``ActiveQuery extends \pvsaintpe\log\components\ActiveQuery`

To track changes, add to your model:

```
/**
 * @return bool
 */
public static function logEnabled()
{
    return true;
}
```

**Build project**

Every time when you change the database schema to be logged, run the command:

```
#!/usr/bin/env bash
php ./yii changelog/generate
php ./yii changelog/migrate --interactive=0
```

**Customization**

1. To access the visual part, for example, to view revisions and change history of your data, add to the config:

```
// backend/configs/main.php
return [
    'modules' => [
        'changelog' => [
            'class' => 'pvsaintpe\log\Module',
        ],
    ]
];
```

2. To fine-tune the logging system, use the configurator. For a complete list of available options, see pvsaintpe\\log\\components\\Configs:

```
// common/configs/params.php
return [
    'changelog.configs' => [
        'db' => 'dbLog', // DB Storage for Log-tables
        'storageDb' => 'db', // DB Storage for Data-tables
        'adminTable' => 'admin', // Table Name for Admin's
        'tablePrefix' => '_log',
        'adminColumn => 'updated_by',
    ],
];
```

**Usage**

To activate all features of the component, use pvsaintpe\\log\\traits\\SearchTrait in your Search-models. It is recommended to keep the log data in a separate database, although you are not limited in this.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 97.5% 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 ~7 days

Recently: every ~222 days

Total

173

Last Release

1720d ago

Major Versions

3.7.6 → 4.0.0-alpha2018-11-23

4.0.9 → 5.0.02018-11-24

5.1.14 → 6.0.02018-12-08

6.1.2 → 7.0.02019-03-07

7.0.1 → 8.0.12019-06-08

PHP version history (2 changes)v1.0.6PHP &gt;=7.0.0

8.0.1PHP ^7.1.3

### Community

Maintainers

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

---

Top Contributors

[![pvsaintpe](https://avatars.githubusercontent.com/u/16900171?v=4)](https://github.com/pvsaintpe "pvsaintpe (157 commits)")[![smaknsk](https://avatars.githubusercontent.com/u/540191?v=4)](https://github.com/smaknsk "smaknsk (3 commits)")[![novozhen](https://avatars.githubusercontent.com/u/45291274?v=4)](https://github.com/novozhen "novozhen (1 commits)")

---

Tags

code generatoryii2gii

### Embed Badge

![Health badge](/badges/forex-formula-yii2-log/health.svg)

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

###  Alternatives

[yiisoft/yii2-gii

The Gii extension for the Yii framework

21118.4M613](/packages/yiisoft-yii2-gii)

PHPackages © 2026

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