PHPackages                             mazba/cake-simple-model-history - 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. mazba/cake-simple-model-history

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

mazba/cake-simple-model-history
===============================

CakeSimpleModelHistory plugin for CakePHP (mazba.github.io)

470CSS

Since Dec 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mazba/cake-simple-model-history)[ Packagist](https://packagist.org/packages/mazba/cake-simple-model-history)[ RSS](/packages/mazba-cake-simple-model-history/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakeSimpleModelHistory plugin for CakePHP
=========================================

[](#cakesimplemodelhistory-plugin-for-cakephp)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

Add the following lines to your application's `composer.json`:

```
    "require": {
       "mazba/cake-simple-model-history": "dev-master"
    }
```

followed by the command: `composer update`

Or

The recommended way to install composer packages is:

```
    composer require "mazba/cake-simple-model-history:dev-master"
```

Setup
-----

[](#setup)

In `config/bootstrap.php` add:

```
    Plugin::load('CakeSimpleModelHistory', ['bootstrap' => false, 'routes' => true]);
```

or using CakePHP's console:

```
    ./bin/cake plugin load CakeSimpleModelHistory
```

Configuration
-------------

[](#configuration)

Add the following line to your AppController:

```
    use CakeSimpleModelHistory\Controller\ActivityLogsTrait;
```

Add the following inside your AppController Class

```
    class AppController extends Controller
    {
        use ActivityLogsTrait;
    }
```

Finally, you'll also need to run migration on the package

```
    cake migrations migrate -p CakeSimpleModelHistory
```

Attach the behavior in the models you want with:

```
    public function initialize(array $config) {
        $this->addBehavior('CakeSimpleModelHistory.ActivityLogs');
    }
```

To view history : /cake-simple-model-history
--------------------------------------------

[](#to-view-history--cake-simple-model-history)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![mazba](https://avatars.githubusercontent.com/u/5021528?v=4)](https://github.com/mazba "mazba (20 commits)")

### Embed Badge

![Health badge](/badges/mazba-cake-simple-model-history/health.svg)

```
[![Health](https://phpackages.com/badges/mazba-cake-simple-model-history/health.svg)](https://phpackages.com/packages/mazba-cake-simple-model-history)
```

###  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)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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