PHPackages                             igor-tv/oc-revisionable-behavior - 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. igor-tv/oc-revisionable-behavior

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

igor-tv/oc-revisionable-behavior
================================

Revisionable behavior for extending OCMS models

1.0.3(4y ago)162[1 issues](https://github.com/igor-tv/oc-revisionable-behavior/issues)GPL-3.0PHPPHP &gt;=7.2

Since Aug 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/igor-tv/oc-revisionable-behavior)[ Packagist](https://packagist.org/packages/igor-tv/oc-revisionable-behavior)[ RSS](/packages/igor-tv-oc-revisionable-behavior/feed)WikiDiscussions main Synced today

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

Revisionable behavior for OctoberCMS
====================================

[](#revisionable-behavior-for-octobercms)

**Revisionable behavior** for extending any OctoberCMS models. This can be used instead Revisionable trait when you need to extend a third party model.

**Installation**

Run the command below in the root folder of your project:

`composer require igor-tv/oc-revisionable-behavior`

**Use Example**

```
\RainLab\User\Models\User::extend(function ($model) {
    $model->implement[] = 'Iweb.Behaviors.RevisionableModel';

    $revisionableFields = [
        'name',
        'email'
    ];

    //required
    $model->addDynamicProperty('revisionable', $revisionableFields);

    //optional, default: 500
    $model->addDynamicProperty('revisionableLimit', 200);

    //optional, if you need rename revisions model relation
    $model->addDynamicProperty('revisionHistoryRelationName', 'your_history_relation_name');

    //optional, if you need assosiate changes with backend users
    $model->addDynamicMethod('getRevisionableUser', function () {
        if (!\BackendAuth::check()) {
            return null;
        }

        return \BackendAuth::getUser()->id;
    });
});

```

For more details see Revisionable trait description

Extending Models in official documentation

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1732d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a5ff3b36d8fc28605ce3f2477ccb11acb6c9ebb0d8e0f9ef8cb4374b2673276?d=identicon)[igor-tv](/maintainers/igor-tv)

---

Top Contributors

[![igor-tv](https://avatars.githubusercontent.com/u/6777469?v=4)](https://github.com/igor-tv "igor-tv (20 commits)")

### Embed Badge

![Health badge](/badges/igor-tv-oc-revisionable-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/igor-tv-oc-revisionable-behavior/health.svg)](https://phpackages.com/packages/igor-tv-oc-revisionable-behavior)
```

PHPackages © 2026

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