PHPackages                             grummfy/laravel-restorable-events - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. grummfy/laravel-restorable-events

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

grummfy/laravel-restorable-events
=================================

This library is an help to store and restore events for laravel.

0.5.2(8y ago)016MITPHP

Since Jan 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Grummfy/laravel-restorable-events)[ Packagist](https://packagist.org/packages/grummfy/laravel-restorable-events)[ RSS](/packages/grummfy-laravel-restorable-events/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel restorable events
=========================

[](#laravel-restorable-events)

This library is an help to store and restore events.

Compatible with laravel 5.5.

Install
-------

[](#install)

Install the dependencies

```
composer require grummfy/laravel-restorable-events

```

Publish the configuration

```
php artisan vendor:publish --tag=config --provider=Grummfy\RestorableEvents\RestorableEventsProvider

```

Create the model class, using the trait `EventStorableTrait`. See the example directory if you need it.

Edit your `Providers\EventServiceProvider.php`:

- Use the trait `EventServiceProviderTrait`
- You will also require to have this variable set, with at least theses values:

```
	protected $listen = [
		JsonSerializableContract::class => [
			StorableEventListener::class,
		],
	];
```

This will allow the usage of the storage of the event on the fly.

Usage
-----

[](#usage)

On any event you want to store, just extends `RestorableEvent` or implements the two interface `RestorableContract`, `JsonSerializableContract`. The rest is made by the listener.

If you need to hook some change, when an event is restored, just implements the `restored` method available on it.

If you require you could also prioritise the events. Just fill the `$priorities` value from the trait on the service listener.

### What's stored

[](#whats-stored)

In the event `CreditRefilled` is dispatched, it will be saved, but for each eloquent model, only the id and the name of the model will be saved.

TODO
----

[](#todo)

- unit test
- QA tools
    - travis
    - styleci
    - scrutinizer
    - ...

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

3029d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/668804?v=4)[Grummfy](/maintainers/Grummfy)[@Grummfy](https://github.com/Grummfy)

---

Top Contributors

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

---

Tags

eventlaravelmodelrestorable

### Embed Badge

![Health badge](/badges/grummfy-laravel-restorable-events/health.svg)

```
[![Health](https://phpackages.com/badges/grummfy-laravel-restorable-events/health.svg)](https://phpackages.com/packages/grummfy-laravel-restorable-events)
```

###  Alternatives

[gbrock/laravel-table

Table functionality for Laravel models

7644.3k](/packages/gbrock-laravel-table)[edofre/laravel-fullcalendar

Laravel component for fullcalendar package

591.8k](/packages/edofre-laravel-fullcalendar)[edofre/laravel-fullcalendar-scheduler

Laravel component for fullcalendar scheduler module

251.5k](/packages/edofre-laravel-fullcalendar-scheduler)

PHPackages © 2026

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