PHPackages                             minhajul/activity-logger - 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. minhajul/activity-logger

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

minhajul/activity-logger
========================

Bare bones laravel activity logger package just to log model activity.

411PHP

Since Aug 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/minhajul/activity-logger)[ Packagist](https://packagist.org/packages/minhajul/activity-logger)[ RSS](/packages/minhajul-activity-logger/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Activity Logger
-----------------------

[](#laravel-activity-logger)

In one of my personal project I was needed to track model events(created, updated, deleted, restored) etc in database, So this was my purpose to create a package to simply track model events. If you are looking for full featured activity logger, I highly recommend to use this [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog) package.

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

[](#installation)

You can install the package via composer by running this command in your terminal,

```
composer require minhajul/activity-logger

```

or

```
"require": {
    "minhajul/activity-logger": "dev-master"
}

```

then execute `composer update`

You can publish the config file by running this command: `php artisan vendor:publish`

Run `php artisan migrate` to create related database

Usages
------

[](#usages)

```
// Add this trait in your model
use RecordsActivity;

// By default package will track 'created', 'updated' , 'deleted', 'restored' events if you want to override events you can add static $recordEvents in model
protected static $recordEvents = [ 'created', 'updated']

// To fetch model events
$model->activities;

// To fetch activities caused by a specific user
$user->activity;
```

Contributing
------------

[](#contributing)

Credits
-------

[](#credits)

- [Md. Minhajul Islam](https://github.com/minhajul)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2203c8443a522c0f3e14d4792ce6cb5e960cfcff773c1c5832295c1bb039e27f?d=identicon)[minhajul](/maintainers/minhajul)

---

Top Contributors

[![minhajul](https://avatars.githubusercontent.com/u/7339398?v=4)](https://github.com/minhajul "minhajul (28 commits)")

---

Tags

activityeventslaravellaravel-packageloggermodel

### Embed Badge

![Health badge](/badges/minhajul-activity-logger/health.svg)

```
[![Health](https://phpackages.com/badges/minhajul-activity-logger/health.svg)](https://phpackages.com/packages/minhajul-activity-logger)
```

###  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)
