PHPackages                             mudandstars/simple-historizations - 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. mudandstars/simple-historizations

ActiveLibrary[Database &amp; ORM](/categories/database)

mudandstars/simple-historizations
=================================

This package allows for simple historizations of specific columns of a model.

v1.0.3(3y ago)2247MITPHPPHP ^8.2

Since Feb 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mudandstars/simple-historizations)[ Packagist](https://packagist.org/packages/mudandstars/simple-historizations)[ Docs](https://github.com/mudandstars/simple-historizations)[ RSS](/packages/mudandstars-simple-historizations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (9)Versions (5)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3a732eabf8b60b406b83364b60e04b934ba76e5f0fe8488b334647bc45090dc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d7564616e6473746172732f73696d706c652d686973746f72697a6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mudandstars/simple-historizations)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/8ebc94d1fc26574ed211d8d94b03cb7db1d96042abb51643a797f70875d8523a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d7564616e6473746172732f73696d706c652d686973746f72697a6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mudandstars/simple-historizations)[![Tests](https://github.com/mudandstars/simple-historizations/actions/workflows/tests.yml/badge.svg)](https://github.com/mudandstars/simple-historizations/actions/workflows/tests.yml)

Disclaimer
----------

[](#disclaimer)

This package was meant to be a practice effort, growing out of the need of an own project. If you require more complex functionality, I recommend you use the popular [Laravel Auditing](https://laravel-auditing.com/https://www.youtube.com/watch?v=R2d2spnXyLA).

simple-historizations
=====================

[](#simple-historizations)

When you want to historize changes to a column in your model, this package is for you.

How it works
------------

[](#how-it-works)

You have a model 'MyModel' and want to historize changes to the 'column\_to\_historize' column.

So you add the trait to the model and specify which columns to historize, giving each historization model a proper name.

Then, you run the command and migrate your database and voilá, whenever the specified column changes, a new instance of the historization model will be created.

Installation &amp; Setup
------------------------

[](#installation--setup)

1. Install the package into your project via composer like so:

```
composer require mudandstars/simple-historizations

```

2. Use the trait in the models you want to historize on change:

```
class MyModel extends Model
{
    use SimpleHistorizations;

    ...
}
```

3. Specify the name of your Historization models and the column it should historize:

```
class MyModel extends Model
{
    use SimpleHistorizations;

    protected $historize = [
        'HistorizationModelName' => 'column_to_historize',
        'CostHistorization' => 'cost',
    ];

    ...
}
```

4. Run the artisan command to make the required models and migrations and migrate your database:

```
sail artisan make-historization-files
sail artisan migrate

```

---

You are all set up now. On subsequent updates to the model, an instance of the specified HistorizationModel will be created when the column\_to\_historize changes.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~2 days

Total

4

Last Release

1163d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79c95fd7f8a8a9305aa0b66cbcf3d05862f4069a505355d6e57cf8f914ee4405?d=identicon)[mudandstars](/maintainers/mudandstars)

---

Top Contributors

[![mudandstars](https://avatars.githubusercontent.com/u/94740279?v=4)](https://github.com/mudandstars "mudandstars (55 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mudandstars-simple-historizations/health.svg)

```
[![Health](https://phpackages.com/badges/mudandstars-simple-historizations/health.svg)](https://phpackages.com/packages/mudandstars-simple-historizations)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[spatie/laravel-db-snapshots

Quickly dump and load databases

1.2k2.8M20](/packages/spatie-laravel-db-snapshots)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)

PHPackages © 2026

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