PHPackages                             endritvs/user-logs - 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. endritvs/user-logs

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

endritvs/user-logs
==================

Track user logs easily with this package, easy also to integrate into all Laravel projects.

1.0.0(2y ago)16MITPHPPHP ^8.0

Since Sep 28Pushed 2y ago1 watchersCompare

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

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

Laravel User Logs Package
=========================

[](#laravel-user-logs-package)

The `endritvs/user-logs` package offers a robust solution to effortlessly track and log user activities in any Laravel application. With a breezy setup, maintain logs of user interactions to gain valuable insights for debugging, monitoring, or auditing.

[![Latest Version on Packagist](https://camo.githubusercontent.com/af739bc7bd21643a145300a07f37f73f79e2c4edc8d786fa88880c7b867d413b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e6472697476732f757365722d6c6f67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/endritvs/user-logs)

Features
--------

[](#features)

- 🌟 **Seamless Integration**: Just plug, play, and track! Integrates smoothly with existing Laravel applications.
- 📂 **Organized Logs**: Logs neatly organized by individual user IDs, offering clear visibility into each user's actions.
- 🛠 **Customizable**: Adjust or extend default behaviors as per your unique requirements.
- 🚀 **Performance Optimized**: Designed with minimal overhead to ensure smooth application performance.

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

[](#installation)

1. **Get the Package**

    Install via Composer:

    ```
    composer require endritvs/user-logs:^dev-main
    ```
2. **Configure Middleware**

    Register the middleware in your application. First, add it to the `$routeMiddleware` property of your `app/Http/Kernel.php` file:

    ```
    protected $routeMiddleware = [
        // ... other middleware ...
        'track.user.log' => \Endritvs\UserLogs\Middleware\TrackUserLogMiddleware::class,
    ];
    ```

    Now, you can use the `track.user.log` middleware in your routes file to apply it to individual routes or groups of routes and it will log all routes that user has accessed:

    ```
    Route::middleware('track.user.log')->group(function () {
        // ... your routes ...
    });
    ```
3. **Configure Logging Channel**

    Register the custom logging channel in `config/logging.php`:

    ```
    'user_logs' => [
        'driver' => 'custom',
        'via' => Endritvs\UserLogs\TrackUserLog::class,
    ]
    ```
4. **More Usage if you need - Optional**

    You can use also Laravel's native logging system to log user activities for:

    ```
    Log::channel('user_logs')->info('User performed a specific action.');
    ```

    By default, logs are found in `storage/logs/user_logs`. They're sorted by user ID and the respective controller action.

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

[](#contributing)

We welcome contributions! If you spot a bug, have a feature suggestion, or can enhance the current functionalities, please send a pull request.

License
-------

[](#license)

This package adheres to the MIT License. Check out the [LICENSE](https://github.com/endritvs/user-logs/blob/main/LICENSE) file for more details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

963d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16cf01bb1494c15d328ebff8624cccd7f83563c03e91eff04ea9a99d153874d7?d=identicon)[endritvs](/maintainers/endritvs)

---

Top Contributors

[![endritvs](https://avatars.githubusercontent.com/u/104865231?v=4)](https://github.com/endritvs "endritvs (13 commits)")

---

Tags

laravelloggingusertracking

### Embed Badge

![Health badge](/badges/endritvs-user-logs/health.svg)

```
[![Health](https://phpackages.com/badges/endritvs-user-logs/health.svg)](https://phpackages.com/packages/endritvs-user-logs)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90234.6M36](/packages/bugsnag-bugsnag-laravel)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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