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.2.1(2w ago)01.7k1MITPHPPHP ^8.3

Since Jan 13Pushed 2w 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 yesterday

READMEChangelog (10)Dependencies (50)Versions (18)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

52

—

FairBetter than 96% of packages

Maintenance97

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 63.1% 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 ~40 days

Recently: every ~21 days

Total

14

Last Release

16d ago

Major Versions

1.1.0 → 2.0.02025-10-03

1.1.1 → 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 (34 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 (2 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

87512.0M165](/packages/spatie-laravel-health)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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