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

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

nawasara/audit
==============

Audit trail, activity logging, and login attempt tracking for the Nawasara superapp framework.

v0.1.0(1mo ago)044MITBladePHP ^8.1

Since May 9Pushed 1mo agoCompare

[ Source](https://github.com/nawasara/audit)[ Packagist](https://packagist.org/packages/nawasara/audit)[ RSS](/packages/nawasara-audit/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Nawasara Audit
==============

[](#nawasara-audit)

Audit trail, activity logging, and login attempt tracking for the Nawasara superapp framework.

Features
--------

[](#features)

- **Activity log** — every significant write action (model create/update/delete) is recorded with the user, timestamp, and field-level diff using `spatie/laravel-activitylog`.
- **Login history** — successful and failed authentication attempts are persisted, including IP address, user agent, and outcome.
- **Admin viewer** — Livewire pages to browse, filter, and inspect activity log entries and login attempts without leaving Nawasara.
- **Permission-gated** — viewing the audit pages requires Spatie permissions seeded by the package.

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

[](#installation)

This package ships as part of the Nawasara monorepo and is auto-discovered by Laravel.

```
composer require nawasara/audit
php artisan migrate
php artisan db:seed --class="Nawasara\Audit\Database\Seeders\PermissionSeeder" --force
```

Usage
-----

[](#usage)

Enable activity logging on any Eloquent model:

```
use Spatie\Activitylog\Traits\LogsActivity;
use Spatie\Activitylog\LogOptions;

class Post extends Model
{
    use LogsActivity;

    public function getActivitylogOptions(): LogOptions
    {
        return LogOptions::defaults()
            ->logOnly(['title', 'body'])
            ->logOnlyDirty();
    }
}
```

Login attempts are recorded automatically by the bundled listeners; no caller code is required.

Pages
-----

[](#pages)

RoutePermissionPurpose`/admin/audit/activity``audit.activity.view`Filterable activity log viewer`/admin/audit/login-history``audit.login.view`Login attempt historyAuthor
------

[](#author)

**Pringgo J. Saputro** &lt;&gt;

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance94

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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

Unknown

Total

1

Last Release

32d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16914951?v=4)[Pringgo J. Saputro](/maintainers/pringgojs)[@pringgojs](https://github.com/pringgojs)

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

---

Top Contributors

[![pringgojs](https://avatars.githubusercontent.com/u/16914951?v=4)](https://github.com/pringgojs "pringgojs (20 commits)")

---

Tags

laravelAuditactivity-logcompliancelogin-historyNawasara

### Embed Badge

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

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

###  Alternatives

[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17614.3k](/packages/muhammadsadeeq-laravel-activitylog-ui)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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