PHPackages                             odinbi/activity-logs-with-trigger - 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. odinbi/activity-logs-with-trigger

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

odinbi/activity-logs-with-trigger
=================================

Write activity logs use tringger

v1.6(1y ago)076MITPHPPHP &gt;=7.0

Since Dec 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DuyRom/activity-logs-trigger)[ Packagist](https://packagist.org/packages/odinbi/activity-logs-with-trigger)[ RSS](/packages/odinbi-activity-logs-with-trigger/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (8)Used By (0)

Odinbi activity logs
====================

[](#odinbi-activity-logs)

Record query history of table in mysql

User Manual
-----------

[](#user-manual)

### Install package

[](#install-package)

```
composer require odinbi/activity-logs-with-trigger
```

### Publish vendor

[](#publish-vendor)

```
php artisan vendor:publish --tag=odb-activity-log
```

### Migrate datatable

[](#migrate-datatable)

Run php artisan migrate command to create activity\_log\_triggers table

```
php artisan migrate
```

Or run with folder path option

```
php artisan migrate --path=database/migrations/2024_01_01_000000_create_activity_log_triggers_table.php
```

### Configuration

[](#configuration)

Go to app/config/activity-logs-trigger.php to configure the necessary variables

- **table**: `List of tables to record history`
- **middleware\_groups**: `Using middleware for web or api`
- **retain\_days**: `Maximum log retention time in days`

### Schedule

[](#schedule)

Configure automatic schedule to delete old logs according to retain days, EX:

```
$schedule->command('logs:clean-old')->dailyAt('01:00');
```

### Command

[](#command)

Create triggers for all tables defined in activity-logs-trigger

```
php artisan db:create-all-triggers
```

Add a trigger to any table, **php artisan db:create-triggers**

 . For example to the users table```
php artisan db:create-triggers users
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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

Total

7

Last Release

549d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44442275?v=4)[Duy Nguyen](/maintainers/DuyRom)[@DuyRom](https://github.com/DuyRom)

---

Top Contributors

[![DuyRom](https://avatars.githubusercontent.com/u/44442275?v=4)](https://github.com/DuyRom "DuyRom (14 commits)")

### Embed Badge

![Health badge](/badges/odinbi-activity-logs-with-trigger/health.svg)

```
[![Health](https://phpackages.com/badges/odinbi-activity-logs-with-trigger/health.svg)](https://phpackages.com/packages/odinbi-activity-logs-with-trigger)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6225.3M625](/packages/illuminate-log)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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