PHPackages                             swap2205/laravel-auditable - 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. swap2205/laravel-auditable

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

swap2205/laravel-auditable
==========================

An easy to implement attribute audit log for Eloquent ORM in Laravel

07PHP

Since Jan 25Pushed 2y agoCompare

[ Source](https://github.com/swap2205/laravel-auditable)[ Packagist](https://packagist.org/packages/swap2205/laravel-auditable)[ RSS](/packages/swap2205-laravel-auditable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Auditable
=========

[](#auditable)

An easy to implement attribute audit log for Eloquent ORM in Laravel 4.X.

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

[](#installation)

Add the repository to your `composer.json`:

```
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/swap2205/laravel-auditable"
    }
],

```

and also require `Auditable`:

```
"require": {
	"laravel/framework": "4.1.*",
	"olsgreen/laravel-guardian": "dev-master",
},

```

Run `composer update` to update your app or `composer install` to install.

After install / update you will need to run the packages migrations like so:

```
php artisan migrate --package="swap2205/auditable"

```

and also add `Auditable` as a service provider within your `app/config/app.php`:

```
'providers' => array(

	'Illuminate\Foundation\Providers\ArtisanServiceProvider',
	'Illuminate\Auth\AuthServiceProvider',
	..........

	// Auditable - add this line below the others
	'Swap2205\Auditable\AuditableServiceProvider',
),

```

After this you'll be ready to go.

Getting started
---------------

[](#getting-started)

Auditable offers two methods of implementation:

1. Inheritance, by using our `AuditableModel` as a base class.
2. Adding a model event observer.

### Using Auditable via inheritance

[](#using-auditable-via-inheritance)

To come.

### Using Auditable via a model event observer

[](#using-auditable-via-a-model-event-observer)

To come.

License
-------

[](#license)

Copyright (c) 2014 Oliver Green

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% 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/f0d6696ee5958bd3fbab612965af981fbb654b1653ee36ac5c59eba3a3a83e0e?d=identicon)[swap2205](/maintainers/swap2205)

---

Top Contributors

[![olsgreen](https://avatars.githubusercontent.com/u/1324164?v=4)](https://github.com/olsgreen "olsgreen (4 commits)")[![swap2205](https://avatars.githubusercontent.com/u/28374483?v=4)](https://github.com/swap2205 "swap2205 (2 commits)")[![chrisnetonline](https://avatars.githubusercontent.com/u/265868?v=4)](https://github.com/chrisnetonline "chrisnetonline (1 commits)")

### Embed Badge

![Health badge](/badges/swap2205-laravel-auditable/health.svg)

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

###  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)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

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

Reliese Components for Laravel Framework code generation.

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

PHPackages © 2026

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