PHPackages                             chaseconey/laravel-activity - 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. chaseconey/laravel-activity

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

chaseconey/laravel-activity
===========================

A simple Laravel model activity recording mechanism

1.0.0(11y ago)7861MITPHPPHP &gt;=5.4.0

Since Apr 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/chaseconey/laravel-activity)[ Packagist](https://packagist.org/packages/chaseconey/laravel-activity)[ RSS](/packages/chaseconey-laravel-activity/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Activity Logger
-----------------------

[](#laravel-activity-logger)

[![StyleCI](https://camo.githubusercontent.com/26b46abb9076270df56719d0bd98f037248d8f494c70dabdc3aa9c7debb44fa7/68747470733a2f2f7374796c6563692e696f2f7265706f732f33343131393331352f736869656c64)](https://styleci.io/repos/34119315/)[![Latest Stable Version](https://camo.githubusercontent.com/656ab624e7a5127424b5f9f69c3363596330d342efdfdbfddf9d1625cff1a934/68747470733a2f2f706f7365722e707567782e6f72672f6368617365636f6e65792f6c61726176656c2d61637469766974792f762f737461626c652e737667)](https://packagist.org/packages/chaseconey/laravel-activity) [![Total Downloads](https://camo.githubusercontent.com/1bdd67984ca00e9cf8cac8af2d869052cc7cae7eaf0040e5ad25fb2edaa91622/68747470733a2f2f706f7365722e707567782e6f72672f6368617365636f6e65792f6c61726176656c2d61637469766974792f646f776e6c6f6164732e737667)](https://packagist.org/packages/chaseconey/laravel-activity) [![Latest Unstable Version](https://camo.githubusercontent.com/c78d82e41f70f2362346c74899a9e05830bf8b007f631c441b2697a5e4d71800/68747470733a2f2f706f7365722e707567782e6f72672f6368617365636f6e65792f6c61726176656c2d61637469766974792f762f756e737461626c652e737667)](https://packagist.org/packages/chaseconey/laravel-activity) [![License](https://camo.githubusercontent.com/d1a5bf377907bcc54883f9d463edf2cdc2e716bbd397a5c57f9a0e2bedce35ff/68747470733a2f2f706f7365722e707567782e6f72672f6368617365636f6e65792f6c61726176656c2d61637469766974792f6c6963656e73652e737667)](https://packagist.org/packages/chaseconey/laravel-activity)

A very simple activity logger build specifically for laravel that tracks actions performed by users based on model events.

[Inspired by a Laracasts Lesson](https://github.com/laracasts/Build-An-Activity-Feed-in-Laravel/tree/master/app)

Quikstart
---------

[](#quikstart)

1. Add package to composer.json

```
"require": {
    "laravel/framework": "5.0.*",
    "chaseconey/laravel-activity": "dev-master"
  }
```

2. Add Service Provider to app.php config

```
'Chaseconey\ActivityRecorder\ActivityProvider'
```

3. `composer update`
4. Publish the database migration for Activity table

```
php artisan vendor:publish --provider="Chaseconey\ActivityRecorder\ActivityProvider" --tag="migrations"
```

5. `php artisan migrate`
6. Add the trait to any model and enjoy!

```
use Chaseconey\ActivityRecorder\RecordsActivity;

Class Tweet extends Model
{
  use RecordsActivity;
}
```

Details
-------

[](#details)

This package is supposed to be a sort of drop-in addition to your code base for tracking when a user is performing any model events you want. The information is stored in a table, *activities*, and an *Activity* model is also provided for accessing that information.

### Customizing Processed Events

[](#customizing-processed-events)

By default, *created, updated, and deleted* events are persisted to the table. You can change which events are processed by adding a static property to the model you have added the trait to:

```

	Class Tweet extends Model
    {
        use RecordsActivity;

        /**
		 * Which events to record for the auth'd user.
		 *
		 * @var array
		 */
        protected static $recordEvents = ['created'];
    }

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4049d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b008ea9f1f6ff48821fa7fe89b2197fd419ad6e89e10d9005f91486f6f0d71f1?d=identicon)[chaseconey](/maintainers/chaseconey)

---

Top Contributors

[![chaseconey](https://avatars.githubusercontent.com/u/1449463?v=4)](https://github.com/chaseconey "chaseconey (16 commits)")

---

Tags

eventlaravelloggingmodelactivity

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chaseconey-laravel-activity/health.svg)

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

###  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)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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