PHPackages                             hasnularief/auditor - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. hasnularief/auditor

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

hasnularief/auditor
===================

Audit and Log your Laravel Model

v1.0.0(7y ago)058MITPHPPHP &gt;=5.6.4

Since Jun 28Pushed 7y agoCompare

[ Source](https://github.com/hasnularief/auditor)[ Packagist](https://packagist.org/packages/hasnularief/auditor)[ RSS](/packages/hasnularief-auditor/feed)WikiDiscussions master Synced 3d ago

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

Auditor for Laravel
===================

[](#auditor-for-laravel)

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

[](#installation)

Require this package with composer:

```
composer require hasnularief/auditor:dev-master
```

Add packages to autoload and add ServiceProvider to config\\app.php

```
Hasnularief\Auditor\AuditorServiceProvider::class,
```

Copy the package config to your local config with the publish command:

```
php artisan vendor:publish --tag=auditor
```

Auditor will be enabled when `AUDITOR` is `true` in .env

How to use
----------

[](#how-to-use)

Add AuditorTrait to your model and auditor will audit your model when you write data

```
use Hasnularief\Auditor\AuditorTrait;

class User extends Model
{
    use AuditorTrait;
```

Auditor using observer to observe your model. If your model already have observer in boot method, you can't use the first method, but you can include observer directly in model.

```
use Hasnularief\Auditor\AuditorObserver;

class User extends Model
{
    protected static function boot()
    {
        parent::boot();
        $request = request();
        static::observe(new AuditorObserver($request));
    }
```

Finally you can access the result in route `your-project.dev/auditor`

For other configuration you can see in `config/auditor.php`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2878d ago

### Community

Maintainers

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

---

Top Contributors

[![hasnularief](https://avatars.githubusercontent.com/u/23429954?v=4)](https://github.com/hasnularief "hasnularief (6 commits)")

---

Tags

auditorlaravel-5-package

### Embed Badge

![Health badge](/badges/hasnularief-auditor/health.svg)

```
[![Health](https://phpackages.com/badges/hasnularief-auditor/health.svg)](https://phpackages.com/packages/hasnularief-auditor)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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