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

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

networkrailbusinesssystems/activity-log
=======================================

Common activity log components for GOV.UK systems

3.1.0(1mo ago)01.3k1MITPHPPHP ^8.3

Since Jan 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Network-Rail-Business-Systems/activity-log)[ Packagist](https://packagist.org/packages/networkrailbusinesssystems/activity-log)[ Docs](https://github.com/Network-Rail-Business-Systems/activity-log)[ RSS](/packages/networkrailbusinesssystems-activity-log/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (20)Versions (13)Used By (1)

Activity-Log-Library
====================

[](#activity-log-library)

[![Composer status](.github/composer.svg)](.github/composer.svg)[![Coverage status](.github/coverage.svg)](.github/coverage.svg)[![NPM status](.github/npm.svg)](.github/npm.svg)[![PHP version](.github/php.svg)](.github/php.svg)[![Tests status](.github/tests.svg)](.github/tests.svg)

Use the Activity Log library to add common activity log components for GOV.UK systems

What's in the box?
------------------

[](#whats-in-the-box)

- PHP 8.3
- Laravel 11 Blade Activity Log Page in the GOV.UK Design

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

[](#installation)

Via Composer: `composer require networkrailbusinesssystems/activity-log`

Publish files (Optional)
------------------------

[](#publish-files-optional)

All required files can be published with the command: `php artisan vendor:publish --provider="NetworkRailBusinessSystems\ActivityLog\ActivityLogServiceProvider" --tag="activity-log"`

### govuk-activity-log

[](#govuk-activity-log)

This tag will publish the config:

- /govuk-activity-log.php

### govuk-activity-log-views

[](#govuk-activity-log-views)

This tag will publish the blade view:

- /Views/activity.blade.php

Set-up
------

[](#set-up)

In your web.php (or your standard route file) add the lines:
`Route::activityLogActioner(YourActionerClass)`, `Route::activityLogActioned(YourActionedClass)` in the route path.

When calling this route in your blade.php, make sure to pass the id. e.g.
`route('your.route', $your_user->id)`

On the Model `YourActionerClass` and `YourActionedClass`, implement Actioned, Actioner + use the HasActions and HasActivities traits

Pre-requisites
--------------

[](#pre-requisites)

The Activity Log requires the [GOVUK Laravel Forms Route Macro](https://github.com/AnthonyEdmonds/govuk-laravel/blob/main/docs/forms.md).

Routing
-------

[](#routing)

A Route Macro is provided to handle the Controller routing

Configuration
=============

[](#configuration)

OptionTypeDefaultUsageuser\_modelmodelApp\\Models\\User:: classSet the User Model to use

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance89

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 68.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 ~48 days

Recently: every ~32 days

Total

10

Last Release

56d ago

Major Versions

1.1.0 → 2.0.02025-10-03

1.x-dev → 2.0.12025-11-13

2.1.0 → 3.0.02026-02-10

PHP version history (2 changes)1.0.0PHP ^8.3

1.1.0PHP ^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17785811?v=4)[Anthony Edmonds](/maintainers/AnthonyEdmonds)[@AnthonyEdmonds](https://github.com/AnthonyEdmonds)

---

Top Contributors

[![calum-gray](https://avatars.githubusercontent.com/u/182486957?v=4)](https://github.com/calum-gray "calum-gray (89 commits)")[![AnthonyEdmonds](https://avatars.githubusercontent.com/u/17785811?v=4)](https://github.com/AnthonyEdmonds "AnthonyEdmonds (24 commits)")[![TUddin01](https://avatars.githubusercontent.com/u/73365097?v=4)](https://github.com/TUddin01 "TUddin01 (14 commits)")[![AmbreenJamal](https://avatars.githubusercontent.com/u/26721392?v=4)](https://github.com/AmbreenJamal "AmbreenJamal (2 commits)")[![SimRoberts9](https://avatars.githubusercontent.com/u/124249635?v=4)](https://github.com/SimRoberts9 "SimRoberts9 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

5712.0M1](/packages/beyondcode-laravel-server-timing)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[label84/laravel-auth-log

Log user authentication actions in Laravel.

3654.0k](/packages/label84-laravel-auth-log)[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)
