PHPackages                             codewiser/journalism - 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. codewiser/journalism

Abandoned → [owen-it/laravel-auditing](/?search=owen-it%2Flaravel-auditing)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

codewiser/journalism
====================

Audit any events

1.2.5(6y ago)258MITPHP

Since Mar 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/C0deWiser/journalism)[ Packagist](https://packagist.org/packages/codewiser/journalism)[ RSS](/packages/codewiser-journalism/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (1)Versions (10)Used By (0)

Journalism
==========

[](#journalism)

Record any (model or custom) events to store and review history

### Service Provider

[](#service-provider)

Add the package to your application service providers in `config/app.php` file.

```
'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
    Illuminate\Auth\AuthServiceProvider::class,
    ...

    /**
     * Third Party Service Providers...
     */
    Codewiser\Journalism\JournalServiceProvider::class,

],
```

### Migrations

[](#migrations)

Publish the package migrations to your application. Run these commands inside your terminal.

```
php artisan vendor:publish --provider="Codewiser\Journalism\JournalServiceProvider"

```

And also run migrations.

```
php artisan migrate

```

Using as Trait
--------------

[](#using-as-trait)

Add `Journal` to you Model.

```
class Post extends Model {
    use Codewiser\Journalism\Traits\Journalised;
}
```

For now every Eloquent event will be journalized.

And you can journal any events you want.

```
$post = Post::first();

// Record an event
$post->journalise('my-event');
```

You may add to the journal record any payload you want.

```
$post->journalise('my-event', /* jsonable data */);
```

### Or using as Observer

[](#or-using-as-observer)

```
class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        Post::observe(Codewiser\Journalism\Observers\Journalist::class);
    }
}
```

### Auth Subscriber

[](#auth-subscriber)

Package provides mechanism to records auth events.

```
class EventServiceProvider extends ServiceProvider
{
    protected $subscribe = [
        Codewiser\Journalism\Subscribers\Concierge::class,
    ];
}
```

> Subscriber detects `auth/register`, `auth/login`, `auth/logout`, `auth/reset-password` and `auth/fail` events.

### Custom journal records

[](#custom-journal-records)

Lets imagine, every time user wants to update the Post, he must explain, why changes were made.

```
class Controller
{
    public function update(Request $request, $id)
    {
        $post = Post::find($id);
        $post->journalise('comment', $request->get('comment'));
        $post->update($request->all());
    }
}
```

### Accessing history

[](#accessing-history)

You have access to full history with user explanations:

```
foreach ($post->journal as $record) {
    echo "At {$record->created_at}
          user {$record->user['name']}
          makes {$record->event}\n";

    echo "Payload was: " . json_encode($record->payload);
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~6 days

Total

9

Last Release

2198d ago

### Community

Maintainers

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

---

Top Contributors

[![Cellard](https://avatars.githubusercontent.com/u/1220316?v=4)](https://github.com/Cellard "Cellard (17 commits)")

---

Tags

laravelAuditilluminatejournal

### Embed Badge

![Health badge](/badges/codewiser-journalism/health.svg)

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

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)

PHPackages © 2026

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