PHPackages                             codefun/activitylog - 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. codefun/activitylog

ActiveLibrary

codefun/activitylog
===================

Laravel Activity Log

v1.0.7(1y ago)047MITPHPPHP ^7.3|^8.0

Since Aug 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shajushahjalal/codefun_activitylog)[ Packagist](https://packagist.org/packages/codefun/activitylog)[ RSS](/packages/codefun-activitylog/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

About Laravel CodeFun Activity Log
==================================

[](#about-laravel-codefun-activity-log)

- This package will automatically ***Observe*** your Model class and track ***every*** data manupulation history like create, update, delete.
- It will automatically store both record ***(Previous record and Current Record)***. Also it can show the diffrences between previous and updated record of Model information along with user record of who manupulated the data.

Installation Process
====================

[](#installation-process)

- `composer require codefun/activitylog`
- `php artisan migrate`
- Optionally use: `php artisan vendor:publish --tag=codefun_activity`

Before Laravel 5.7
------------------

[](#before-laravel-57)

Add the following into your ***providers*** array on `config\app.php`:

- `CodeFun\Activitylog\App\Providers\ActivityServiceProvider`

then add This alias into ***alias*** array on `config\app.php`:

- `"Activity" => CodeFun\Activitylog\Facade\Activity::class`

Not necessary from Laravel 5.7 onwards
--------------------------------------

[](#not-necessary-from-laravel-57-onwards)

Publish Resource File
=====================

[](#publish-resource-file)

- `php artisan vendor:publish --tag=codefun_activity`

By default codefun provides a basic blade file with bootstrap(v5) for viewing Activity Log and Log Details. You can to customize this blade page design by publishing the blade file. It can be located at `resources/views/vendor/codefun/`

How To Use?
===========

[](#how-to-use)

Go to your Model and use the trait file:

```
use CodeFun\Activitylog\App\Component\Traits\ModelActivity;
class AnyModel extends Model
{
    use ModelActivity;
}

```

If you want to ***set custom message*** while data manipulation, override this method inside your model as shown:
-----------------------------------------------------------------------------------------------------------------

[](#if-you-want-to-set-custom-message-while-data-manipulation-override-this-method-inside-your-model-as-shown)

```
use CodeFun\Activitylog\App\Component\Traits\ModelActivity;
class AnyModel extends Model
{
    use ModelActivity;

    public function getDescriptionForEvent($event_name) : string{
        return "Information has been ". $event_name;
    }
}

```

How to Show Activity log Via Web Route and API Route
----------------------------------------------------

[](#how-to-show-activity-log-via-web-route-and-api-route)

For API
=======

[](#for-api)

- http:://base\_url/api/activity-log/list
- http:://base\_url/api/activity-log/view/{uuid}

For Web
=======

[](#for-web)

- http:://base\_url/activity-log

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Every ~87 days

Total

5

Last Release

648d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6df601cd28c111093887ff3ab228d3c4355ea10bf196250eebdb3aaef324d3d7?d=identicon)[shajushahjalal@gmail.com](/maintainers/shajushahjalal@gmail.com)

---

Top Contributors

[![shajushahjalal](https://avatars.githubusercontent.com/u/34285348?v=4)](https://github.com/shajushahjalal "shajushahjalal (10 commits)")

---

Tags

activity-logLaravel activity log

### Embed Badge

![Health badge](/badges/codefun-activitylog/health.svg)

```
[![Health](https://phpackages.com/badges/codefun-activitylog/health.svg)](https://phpackages.com/packages/codefun-activitylog)
```

###  Alternatives

[jeremykenedy/laravel-logger

Laravel Logger Package

584288.4k1](/packages/jeremykenedy-laravel-logger)[pxlrbt/filament-activity-log

Spatie's Laravel Activity Log integrated into Filament

223546.2k9](/packages/pxlrbt-filament-activity-log)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17510.1k](/packages/muhammadsadeeq-laravel-activitylog-ui)[noxoua/filament-activity-log

A Laravel package that simplifies activity logging in the Filament admin panel, with support for logging create, update, delete, and restore actions. It integrates with the 'spatie/laravel-activitylog' package and includes a modernized activity log viewing page.

7151.5k](/packages/noxoua-filament-activity-log)[iamfarhad/laravel-audit-log

Comprehensive entity-level audit logging package for Laravel applications with model-specific tables, field exclusion, and batch processing support

1315.6k](/packages/iamfarhad-laravel-audit-log)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1022.4k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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