PHPackages                             sasin91/laravel-versionable - 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. sasin91/laravel-versionable

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

sasin91/laravel-versionable
===========================

Enables versioning of Eloquent models.

027PHP

Since Apr 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sasin91/laravel-versionable)[ Packagist](https://packagist.org/packages/sasin91/laravel-versionable)[ RSS](/packages/sasin91-laravel-versionable/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Enable versioning of your eloquent models.
==========================================

[](#enable-versioning-of-your-eloquent-models)

This package makes it a breeze to version your eloquent models, allowing the developer(s) to easily revert to a previous state or even ressurect a deleted model!

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

[](#installation)

You can install the package via composer:

```
composer require sasin91/laravel-versionable
php artisan vendor:publish --provider="Sasin91\LaravelVersionable\VersionableServiceProvider"
```

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

[](#configuration)

Edit the versionable.php file in your config directory, after publishing.

Usage
-----

[](#usage)

Use the `Sasin91\LaravelVersionable\Versionable` trait in your eloquent models.

### example

[](#example)

```
use Illuminate\Database\Eloquent\Model as Eloquent;
use Sasin91\LaravelVersionable\Versionable;

class YourModel extends Eloquent
{
	use Versionable;
	//
}
```

### Testing

[](#testing)

```
composer test
```

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sasin91-laravel-versionable/health.svg)

```
[![Health](https://phpackages.com/badges/sasin91-laravel-versionable/health.svg)](https://phpackages.com/packages/sasin91-laravel-versionable)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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