PHPackages                             jobsrey/yii2-changelog - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jobsrey/yii2-changelog

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

jobsrey/yii2-changelog
======================

Change Log

0151[1 PRs](https://github.com/jobsrey/changelog/pulls)PHP

Since Jan 24Pushed 6y agoCompare

[ Source](https://github.com/jobsrey/changelog)[ Packagist](https://packagist.org/packages/jobsrey/yii2-changelog)[ RSS](/packages/jobsrey-yii2-changelog/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Change Log
==========

[](#change-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 jobsrey/yii2-changelog "*"

```

or add

```
"jobsrey/yii2-changelog": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
'components' => [
        ...
        'changelog' => [
            'class' => 'jobsrey\changelog\ChangeLog',
        ],
```

on model

```
class Users extends \yii\db\ActiveRecord
{

    public $old_attr; //old atribute

    ...

    public function afterSave($insert, $changedAttributes)
    {
        parent::afterSave($insert, $changedAttributes);

        if($insert){ //save log insert
            Yii::$app->changelog->saveLogMessage($this, $this->username.' telah dibuat!',1);
        } else { //save log update
            foreach($changedAttributes as $attr => $value){
                Yii::$app->changelog->saveLogUpdateByOne($attr,$this,$this->old_attr);
            }
        }

        return true;
    }

    public function afterFind(){

        parent::afterFind();

        $this->old_attr = $this->getAttributes(); //add to compare data
    }

}

```

keterangan status

1. insert
2. update
3. delete
4. only info

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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

---

Top Contributors

[![jobsrey](https://avatars.githubusercontent.com/u/25948056?v=4)](https://github.com/jobsrey "jobsrey (5 commits)")

### Embed Badge

![Health badge](/badges/jobsrey-yii2-changelog/health.svg)

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

###  Alternatives

[yucca/prerender-bundle

Allows you to easily use prerender for your Symfony apps running Client-Side MVC

5617.1k](/packages/yucca-prerender-bundle)

PHPackages © 2026

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