PHPackages                             coloredcow/laravel-audit - 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. coloredcow/laravel-audit

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

coloredcow/laravel-audit
========================

Audit logging for Laravel

2.0.2(7y ago)45254[3 issues](https://github.com/coloredcow/laravel-audit/issues)[4 PRs](https://github.com/coloredcow/laravel-audit/pulls)GPL-3.0+PHPPHP &gt;=7.2.0CI failing

Since Sep 2Pushed 1y ago3 watchersCompare

[ Source](https://github.com/coloredcow/laravel-audit)[ Packagist](https://packagist.org/packages/coloredcow/laravel-audit)[ Docs](https://github.com/coloredcow/laravel-audit)[ RSS](/packages/coloredcow-laravel-audit/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (7)Used By (0)

Audit Logs for Laravel
======================

[](#audit-logs-for-laravel)

A package to capture system activity in a Laravel application. Currently supports the following fields:

- IP of HTTP request,
- HTTP referer,
- a description of the action you want to audit.
- user id
- Other details like data and keys

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

[](#installation)

1. Run `composer require coloredcow/laravel-audit`
2. Add the `ColoredCow\LaravelAudit\AuditServiceProvider` to `config/app.php`

```
'providers' => [
    ColoredCow\LaravelAudit\AuditServiceProvider::class
];

```

3. Run `php artisan migrate`

Usage
-----

[](#usage)

1. Use the `ColoredCow\LaravelAudit\Events\Auditable` trait in the events you want to audit. And add this to the contructor of the event.

```
$this->setAudit([
    'ip' => 'ip-of-user-here',
    'referer' => 'referer-address',
    'action' => 'description of event and action being audited'
]);

```

2. Use the `ColoredCow\LaravelAudit\Listeners\AuditActivities` listener to listen to the events to want to audit. Map it in the EventServiceProvider of your laravel application.

Audit Facade
------------

[](#audit-facade)

1. Add AuditFacade in your app to make a audit directly from the applications.

```
 AuditFacade::make(['action' => 'Audit Action']);

```

2. You can also overide other properties like ip, userid and descriptions.

```
 AuditFacade::make(['action' => 'Audit Action', 'ip' => 'My IP']);

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

2563d ago

Major Versions

1.2 → 2.0.22019-05-06

PHP version history (2 changes)1.1PHP ^7.0

2.0.2PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3476aa3ca1cb259e58570083bb81d15e6efbf6a94a46fa6ebe706cf1bb4a6138?d=identicon)[coloredcow](/maintainers/coloredcow)

![](https://avatars.githubusercontent.com/u/10670690?v=4)[Pankaj Agrawal](/maintainers/pankaj-ag)[@pankaj-ag](https://github.com/pankaj-ag)

---

Top Contributors

[![nishanth-kd](https://avatars.githubusercontent.com/u/12891880?v=4)](https://github.com/nishanth-kd "nishanth-kd (13 commits)")[![pankaj-ag](https://avatars.githubusercontent.com/u/10670690?v=4)](https://github.com/pankaj-ag "pankaj-ag (10 commits)")[![vikasrinvi](https://avatars.githubusercontent.com/u/32789328?v=4)](https://github.com/vikasrinvi "vikasrinvi (9 commits)")[![rathorevaibhav](https://avatars.githubusercontent.com/u/12053186?v=4)](https://github.com/rathorevaibhav "rathorevaibhav (3 commits)")[![Satendra-SR](https://avatars.githubusercontent.com/u/39792899?v=4)](https://github.com/Satendra-SR "Satendra-SR (2 commits)")[![PrateekNarang](https://avatars.githubusercontent.com/u/772597?v=4)](https://github.com/PrateekNarang "PrateekNarang (1 commits)")[![pokhiii](https://avatars.githubusercontent.com/u/11808845?v=4)](https://github.com/pokhiii "pokhiii (1 commits)")

---

Tags

auditaudit-logcomposer-packagelaravellaravel-applicationlistenlaravellogsAudit

### Embed Badge

![Health badge](/badges/coloredcow-laravel-audit/health.svg)

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

PHPackages © 2026

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