PHPackages                             aldijakaria/laravel-activity-log - 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. aldijakaria/laravel-activity-log

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

aldijakaria/laravel-activity-log
================================

a package to track user activity log

1.0.5(3y ago)258MITPHPPHP ^8.1.0

Since May 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aldijakaria/laravel-activity-log)[ Packagist](https://packagist.org/packages/aldijakaria/laravel-activity-log)[ RSS](/packages/aldijakaria-laravel-activity-log/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (7)Used By (0)

Laravel Activity Log
====================

[](#laravel-activity-log)

aldijakaria/laravel-activity-log is a Laravel package that allows you to log user activity in your Laravel application. It provides a middleware that can be added to your application's routes to track user activity.

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

[](#installation)

You can install the package via Composer:

```
composer require aldijakaria/laravel-activity-log
```

Migration
---------

[](#migration)

To migrate the package's database tables, use the following Artisan command:

```
php artisan migrate
```

This will create the necessary tables in your database for tracking user activity.

Usage
-----

[](#usage)

To use the package, add the TrackUserActivity middleware to your application's routes:

```
Route::get('/home', function () {
    return view('home');
})->middleware('track:your activity name');
```

This middleware will automatically log the user's activity to the database.

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

[](#configuration)

You can customize the package's behavior by publishing its configuration file. To publish the configuration file, run the following command:

```
php artisan vendor:publish --provider="Aldijakaria\LaravelActivityLog\Providers\LaravelActivityLogProvider" --tag="config"
```

This will create a config/activity-log.php file in your application. You can modify this file to customize the package's behavior.

By default, the package will use the TRACK\_ACTIVITY\_LOG environment variable to determine whether to enable or disable activity logging. If this variable is not set, the package will default to logging activity.

To disable activity logging, you can set the TRACK\_ACTIVITY\_LOG environment variable to false:

```
TRACK_ACTIVITY_LOG=false
```

License
-------

[](#license)

The package is open-sourced software licensed under the MIT license.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Every ~0 days

Total

6

Last Release

1146d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.1.0

1.0.1PHP ^8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4da9d830111f3e86ddbe6cec6f54ff06e8f17136e170246fb7fb26dc185ee4de?d=identicon)[aldijakaria](/maintainers/aldijakaria)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/aldijakaria-laravel-activity-log/health.svg)

```
[![Health](https://phpackages.com/badges/aldijakaria-laravel-activity-log/health.svg)](https://phpackages.com/packages/aldijakaria-laravel-activity-log)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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