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

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

jackjoe/activity-log
====================

A clean and simple Laravel 5 activity logger for logging website / application actions.

0.3.3(8y ago)41.1k3[1 PRs](https://github.com/jackjoe/activity-log/pulls)MITPHPPHP &gt;=7.0

Since Mar 20Pushed 7y ago3 watchersCompare

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

READMEChangelogDependencies (9)Versions (8)Used By (0)

ActivityLog
===========

[](#activitylog)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b6d663d58cf2d6214cbc626969b7ab3ef56d843d019365c66f9483f6eea7053c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a61636b6a6f652f61637469766974792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jackjoe/activity-log)[![Build Status](https://camo.githubusercontent.com/551a35e79bbcd63dfec2845c07e5b88c24598145a30ec41467b58d5f4bdfd4f6/68747470733a2f2f7472617669732d63692e6f72672f6a61636b6a6f652f61637469766974792d6c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jackjoe/activity-log)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f19108d84a09b7d046e5ef04f90086dbb1af6001381a269f25ba6ae7cab1d744/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a61636b6a6f652f61637469766974792d6c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jackjoe/activity-log/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/247b014176831d2ea11843f170917479af2b0d753f3ee5e29600cdf8aaa59439/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a61636b6a6f652f61637469766974792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jackjoe/activity-log)

- [Installation](#installation)
- [Basic Usage](#basic-usage)

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

[](#installation)

### Basic installation, service provider registration, and aliasing:

[](#basic-installation-service-provider-registration-and-aliasing)

Installation is done with composer, so add the package to your`composer.json`file:

```
"require": {
	"jackjoe/activity-log": "0.3.*"
},

```

Then run `composer update`

#### Laravel 5.5+

[](#laravel-55)

Laravel 5.5 has auto discovery, you are done. If not see below.

#### &lt;= Laravel 5.4

[](#-laravel-54)

Register the service provider and alias in `app/config/app.php`. Add the following to the `providers` array:

```
JackJoe\ActivityLog\ActivityLogServiceProvider::class,

```

And add this to the `aliases` array:

```
'Activity' => JackJoe\ActivityLog\Models\Activity::class,

```

### Publishing migrations and configuration:

[](#publishing-migrations-and-configuration)

To publish this package's configuration, run this from the command line:

```
php artisan vendor:publish --provider="JackJoe\ActivityLog\ActivityLogServiceProvider"

```

> **Note:** Migrations are only published; remember to run them when ready.

To run migration to create ActivityLog's table, run this from the command line:

```
php artisan migrate

```

Basic Usage
-----------

[](#basic-usage)

### Logging user activity:

[](#logging-user-activity)

```
Activity::log([
  'contentId'   => $user->id,
  'content' => 'User',
  'action'      => 'ACTION',
  'state'       => 'SUCCESS',
  'details'     => 'Username: ' . $user->username,
  'data'        => json_encode($data)
]);
```

The above code will log an activity for the currently logged in user. The IP address will automatically be saved as well.

### Variable guidelines

[](#variable-guidelines)

- `content`: type of content we are dealing with, can be set to match PHP class, controller, model, ... It gives us more context where this action has taken place.
- `contentId` (option): id of content, in case of a model
- `action`: method name, sub-action in method, ..
- `state`: state of action such as `ERROR`, `SUCCESS`, `WRONG_CODE`, ...
- `details`: more like meta date about current state
- `data`: raw data, fetched content, posted content, ...

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

Based on `Regulus/ActivityLog`.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~69 days

Total

6

Last Release

3043d ago

PHP version history (4 changes)0.1.0PHP &gt;=5.4.0

0.2.0PHP &gt;=5.6.0

0.3.2PHP &gt;=5.6.4

0.3.3PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/202312?v=4)[Jeroen Bourgois](/maintainers/jeroenbourgois)[@jeroenbourgois](https://github.com/jeroenbourgois)

![](https://avatars.githubusercontent.com/u/46622?v=4)[Pieter Michels](/maintainers/pierot)[@pierot](https://github.com/pierot)

---

Top Contributors

[![pierot](https://avatars.githubusercontent.com/u/46622?v=4)](https://github.com/pierot "pierot (28 commits)")[![jeroenbourgois](https://avatars.githubusercontent.com/u/202312?v=4)](https://github.com/jeroenbourgois "jeroenbourgois (2 commits)")[![kei4eva4](https://avatars.githubusercontent.com/u/1227273?v=4)](https://github.com/kei4eva4 "kei4eva4 (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

laravelloggingloglaraveluseractivityjackjoe

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.7k](/packages/larastan-larastan)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k41.3M603](/packages/spatie-laravel-medialibrary)[spatie/laravel-activitylog

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

5.9k50.2M442](/packages/spatie-laravel-activitylog)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)

PHPackages © 2026

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