PHPackages                             dnj/laravel-user-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. dnj/laravel-user-logger

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

dnj/laravel-user-logger
=======================

v1.1.2(2y ago)0458[1 issues](https://github.com/dnj/laravel-user-logger/issues)6MITPHPPHP ^8.1

Since Jan 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dnj/laravel-user-logger)[ Packagist](https://packagist.org/packages/dnj/laravel-user-logger)[ RSS](/packages/dnj-laravel-user-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (6)

Log activity inside your Laravel app
====================================

[](#log-activity-inside-your-laravel-app)

The `dnj/laravel-user-logger` package provides easy way to log the activities of the users of your app. The Package stores all activity in the `logs` table.

Here's a demo of how you can use it:

```
$logger = app(dnj\UserLogger\Contracts\ILogger::class);
$log = $logger
	->performedOn($anEloquentModel)
	->causedBy($user)
	->withProperties(['customProperty' => 'customValue'])
	->log('edit');
```

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

[](#installation)

You can install the package via composer:

```
composer require dnj/laravel-user-logger
```

The package will automatically register itself.

After this you can create the `logs` table by running the migrations:

```
php artisan migrate
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="dnj\UserLogger\ServiceProvider" --tag="config"
```

Security
--------

[](#security)

If you've found a bug regarding security please mail  instead of using the issue tracker.

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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 ~139 days

Total

4

Last Release

808d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73cf0aeb62f80ed9937e3a39a8dfda10b94c36cc7028e9f0a95e04eb8a346db4?d=identicon)[dnj](/maintainers/dnj)

---

Top Contributors

[![yeganemehr](https://avatars.githubusercontent.com/u/16887332?v=4)](https://github.com/yeganemehr "yeganemehr (9 commits)")[![hosni](https://avatars.githubusercontent.com/u/47793698?v=4)](https://github.com/hosni "hosni (4 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/dnj-laravel-user-logger/health.svg)

```
[![Health](https://phpackages.com/badges/dnj-laravel-user-logger/health.svg)](https://phpackages.com/packages/dnj-laravel-user-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)
