PHPackages                             jeroen-g/activity-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. jeroen-g/activity-logger

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

jeroen-g/activity-logger
========================

An activity logger for Laravel

v2.1(8y ago)101801EUPL-1.1PHP

Since Mar 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Jeroen-G/activity-logger)[ Packagist](https://packagist.org/packages/jeroen-g/activity-logger)[ Docs](https://github.com/Jeroen-G/activity-logger)[ RSS](/packages/jeroen-g-activity-logger/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

Activity Logger
===============

[](#activity-logger)

A simple activity logger for Laravel.

[![Scrutinizer Quality Score](https://camo.githubusercontent.com/2646ca6921712121ab9d9c3ca5a6ffd28108a3209fdf67b2745e38a40a3f1b5f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a65726f656e2d472f61637469766974792d6c6f676765722f6261646765732f7175616c6974792d73636f72652e706e673f733d62643135653133633261323638313063383130396263316634643735363963303666356439313663)](https://scrutinizer-ci.com/g/Jeroen-G/activity-logger/)[![Latest Stable Version](https://camo.githubusercontent.com/8e88acaa79f54157d6a5416fb362eb5a077bb0c9a4016cb5982edce9f54d6f1f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6a65726f656e2d672f61637469766974792d6c6f676765722e7376673f7374796c653d666c6174)](https://github.com/jeroen-g/activity-logger/releases)[![License](https://camo.githubusercontent.com/594e087899c94f50e8b66fe6082ae032bac5822a82eb5b5e6a8a538a8c801e26/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4555504c2d2d312e312d626c75652e7376673f7374796c653d666c6174)](license.md)

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

[](#installation)

Via Composer

```
$ composer require jeroen-g/activity-logger
```

The following command installs the package without the testing requirements.

```
$ composer require jeroen-g/activity-logger --update-no-dev
```

Laravel 5.5 automatically installs the package, for previous versions, follow the next two steps. After that, don't forget to run `php artisan migrate`Add the service provider in `config/app.php`:

```
JeroenG\ActivityLogger\ActivityLoggerServiceProvider::class,

```

And in the same file, add the alias:

```
'Activity' =>  JeroenG\ActivityLogger\Facades\ActivityLogger::class,

```

Usage
-----

[](#usage)

### Log an activity

[](#log-an-activity)

```
Activity::log($message, $context, $date);
```

Message is required, the rest is optional. $context is an array which can contain any data you want to save. $date is a timestamp, it defaults to the current timestamp.

### Get all logs

[](#get-all-logs)

```
Activity::getAllLogs();
```

### Get one log

[](#get-one-log)

You only need to pass the id of a log.

```
Activity::getLog(1);
```

### Get all logs within timespan

[](#get-all-logs-within-timespan)

```
$yesterday = Carbon\Carbon::yesterday();
$tomorrow = Carbon\Carbon::tomorrow();

Activity::getLogsBetween($yesterday, $tomorrow);
```

This function needs two parameters, all logs created between these timestamps are returned.

### Get the most recent logs

[](#get-the-most-recent-logs)

```
Activity::getRecentLogs(10);
```

The default of 5 logs is used when no number is passed.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~260 days

Recently: every ~325 days

Total

6

Last Release

3145d ago

Major Versions

v1.0.3 → v2.02015-06-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d8700d69abe733de151f8cf49084e99ded7b9d34d7b0d1cd8f3825f5d925ff3?d=identicon)[JeroenG](/maintainers/JeroenG)

---

Top Contributors

[![Jeroen-G](https://avatars.githubusercontent.com/u/1116853?v=4)](https://github.com/Jeroen-G "Jeroen-G (29 commits)")

---

Tags

laravelactivitylogger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jeroen-g-activity-logger/health.svg)

```
[![Health](https://phpackages.com/badges/jeroen-g-activity-logger/health.svg)](https://phpackages.com/packages/jeroen-g-activity-logger)
```

###  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)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[hryha/laravel-request-logger

A Laravel package to log requests and responses

102.2k](/packages/hryha-laravel-request-logger)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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