PHPackages                             danyaldk/lumen-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. danyaldk/lumen-activity-log

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

danyaldk/lumen-activity-log
===========================

Very simple package to log user activities. Aim is to capture which object was created / updated / deleted by which user. Package it self has no relation implemented and stores whatever is passed.

13381PHP

Since May 12Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Activity Log for Lumen framework
================================

[](#activity-log-for-lumen-framework)

Very simple package to log user activities. Aim is to capture which object was created / updated / deleted by which user. Package it self has no relation implemented and stores whatever is passed.

### Developer

[](#developer)

```
Danyal - www.danyal.dk

```

### Installation

[](#installation)

You can install the package via composer:

```
composer require danyaldk/lumen-activity-log

```

### Register package in you Lumen API.

[](#register-package-in-you-lumen-api)

```
edit: bootstrap/app.php & add fillowing code

$app->register(\DANYALDK\ActivityLog\Providers\ActivityLogServiceProvider::class);

```

### Copy database migration.

[](#copy-database-migration)

This will copy the database migration file file to you api database/migrations folder.

```
php artisan danyaldk:copy:migration

```

### Run database migration.

[](#run-database-migration)

This will copy the database migration file file to you api database/migrations folder.

```
php artisan migrate

```

### Usage

[](#usage)

Now when package is configured successfully, you are good to utilize the activity log. Take a look at example MyController.

```
use DANYALDK\ActivityLog\ActivityLog;
use Illuminate\Http\Request;

/**
 * Class MyController
 *
 * @package App\Http\Controllers
 */
class MyController extends Controller
{
    public function store(Request $request)
    {
        // Example:
        $object = Model::create([....]);

        // Log activity:
        if ($object->id) {
            ActivityLog::log($request, ['object' => $object, 'user_id' => $user_id, 'message' => 'Object is created successfully']);
        }
    }
}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.6% 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/b16b0ca2ad876ae3cdc7210f174180565211cd24d94bba3b12d1b8715f2a3438?d=identicon)[danyal14](/maintainers/danyal14)

---

Top Contributors

[![dbcoder-bold](https://avatars.githubusercontent.com/u/134060213?v=4)](https://github.com/dbcoder-bold "dbcoder-bold (5 commits)")[![danyal14](https://avatars.githubusercontent.com/u/4901789?v=4)](https://github.com/danyal14 "danyal14 (4 commits)")

### Embed Badge

![Health badge](/badges/danyaldk-lumen-activity-log/health.svg)

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

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