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

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

boralp/laravel-auditable
========================

A lightweight Laravel package to track model changes with IP (binary), deduplicated user agents, and created\_by/updated\_by auto-fill. Includes export, cleanup, and API endpoints for easy audit history access.

1.2.0(9mo ago)043MITPHP

Since Aug 29Pushed 9mo agoCompare

[ Source](https://github.com/boralp/laravel-auditable)[ Packagist](https://packagist.org/packages/boralp/laravel-auditable)[ RSS](/packages/boralp-laravel-auditable/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (1)Versions (5)Used By (0)

Laravel Auditable
=================

[](#laravel-auditable)

**Laravel Auditable** is a lightweight, flexible package for tracking changes to your Eloquent models. It automatically logs **create** and **update** actions, including:

- **Binary IP storage** for fast lookups (IPv4 &amp; IPv6)
- **Deduplicated User-Agent table** to save space
- **Automatic `created_by` / `updated_by` population**
- **Audit logs export** to JSON or CSV
- **Retention-based cleanup** of old logs
- **API endpoint** to fetch model audit history

It’s designed to be **easy to install, reusable across projects, and highly configurable** via a simple config file.

---

Features
--------

[](#features)

- Track **who** changed a model and **when**
- Store IP and User-Agent efficiently
- Keep your tables clean (no extra columns per model required)
- Export and archive old logs automatically
- Optional **API endpoint** for retrieving audit history
- Configurable retention period (`retention_days`)

---

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

[](#installation)

```
composer require boralp/laravel-auditable

php artisan vendor:publish --provider="Boralp\Auditable\AuditableServiceProvider" --tag=config
php artisan migrate
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance55

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

4

Last Release

297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/907873?v=4)[Bora Alp Arat](/maintainers/boralp)[@boralp](https://github.com/boralp)

---

Top Contributors

[![boralp](https://avatars.githubusercontent.com/u/907873?v=4)](https://github.com/boralp "boralp (1 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.6k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M278](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M345](/packages/open-telemetry-sdk)

PHPackages © 2026

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