PHPackages                             dp-0/user-activity - 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. dp-0/user-activity

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

dp-0/user-activity
==================

A package for tracking user activity in a Laravel application.

1.0(2y ago)126321MITPHP

Since Jul 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dp-0/user-activity)[ Packagist](https://packagist.org/packages/dp-0/user-activity)[ RSS](/packages/dp-0-user-activity/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

UserActivity
============

[](#useractivity)

User Activity is a Laravel package that allows you to effortlessly track user activity within your Laravel application. It provides a convenient way to log various user actions, including login, logout, page visits, and custom events.

Features
--------

[](#features)

- Log user login, Lockout and logout events.
- Track page visits and user interactions.
- Custom event logging to monitor specific user activities.
- Easily configurable to include or exclude specific actions from tracking.

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

[](#installation)

To install the User Activity package

```
composer require dp-0/user-activity
```

```
php artisan user-activity:install
```

Configuration
-------------

[](#configuration)

After installing the package, it automatically publishes the configuration file for customizing the tracking behavior. You can modify the `user-activity.php` config file as needed.

Usage
-----

[](#usage)

```
use Dp0\UserActivity\Traits\UserActivity;
```

Then, add the trait to your model:

```
class YourModel extends Model
{
    use UserActivity;

    // Your model code here
}
```

Documentation
-------------

[](#documentation)

For detailed documentation references, please read [Article](https://medium.com/@dineshphuyel20/enhance-user-tracking-in-laravel-with-the-user-activity-package-a-comprehensive-guide-683050f88a98).

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

1036d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e093a6e2a682613f0f29af2b6c783d8adae38044e17432068d5d4081e3b70fc?d=identicon)[dinesh-phuyel](/maintainers/dinesh-phuyel)

---

Top Contributors

[![dp-0](https://avatars.githubusercontent.com/u/86118075?v=4)](https://github.com/dp-0 "dp-0 (4 commits)")

---

Tags

laravellivewirelogginguser-activitylaravelloggingtrackinguser activity

### Embed Badge

![Health badge](/badges/dp-0-user-activity/health.svg)

```
[![Health](https://phpackages.com/badges/dp-0-user-activity/health.svg)](https://phpackages.com/packages/dp-0-user-activity)
```

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90334.6M36](/packages/bugsnag-bugsnag-laravel)[pragmarx/tracker

A Laravel Visitor Tracker

2.9k300.0k1](/packages/pragmarx-tracker)

PHPackages © 2026

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