PHPackages                             alive2212/laravel-model-event-service - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. alive2212/laravel-model-event-service

ActiveLibrary[Queues &amp; Workers](/categories/queues)

alive2212/laravel-model-event-service
=====================================

This package to simplisafe model events to fire some jobs

1.0.0(8y ago)112MITPHPPHP ~5.6|~7.0

Since Apr 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Alive2212/LaravelModelEventService)[ Packagist](https://packagist.org/packages/alive2212/laravel-model-event-service)[ Docs](https://github.com/Alive2212/LaravelModelEventService)[ RSS](/packages/alive2212-laravel-model-event-service/feed)WikiDiscussions master Synced yesterday

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

LaravelModelEventService
========================

[](#laravelmodeleventservice)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b83a3ad1e764b96967f9ccb5db9efbe1a90af99ef582cf84767cc35bd3a23e4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c697665323231322f6c61726176656c2d6d6f64656c2d6576656e742d736572766963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alive2212/laravel-model-event-service)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/ce8131cff27f404699ecb763dd541325c8fe9dbed24c94165343955d1542e000/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f416c697665323231322f4c61726176656c4d6f64656c4576656e74536572766963652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Alive2212/LaravelModelEventService)[![Coverage Status](https://camo.githubusercontent.com/3608d5445ae94e2645f0ecece65a52514388b32586a465a86678a3a7d19f0cbb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f416c697665323231322f4c61726176656c4d6f64656c4576656e74536572766963652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Alive2212/LaravelModelEventService/code-structure)[![Quality Score](https://camo.githubusercontent.com/3096ac3ca33a4cbe961240852ff7ece9b4315721ba36012d0472b9e5c8c4609b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f416c697665323231322f4c61726176656c4d6f64656c4576656e74536572766963652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Alive2212/LaravelModelEventService)[![Total Downloads](https://camo.githubusercontent.com/e7c8e353dcfe57c8f59d418f631b292799f1d28e0ed3c73a0b97103efcb74a44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c697665323231322f6c61726176656c2d6d6f64656c2d6576656e742d736572766963652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alive2212/laravel-model-event-service)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.

```
src/
tests/

```

Install
-------

[](#install)

Via Composer

```
$ composer require Alive2212/LaravelModelEventService
```

Usage
-----

[](#usage)

Base Observer Help to create event listener simple

1- Create your own Observer file and locate it into app/Observers

2- Extend it from BaseObserver form this Package

3- Override boot method in your Model what you want to track events

4- Put following code into "boot" of your model after "parent::boot();"

```
Order2::observe(Order2Observer::class);
```

5- add what event you want into event service provider with this convention

```
'App\Events\{Model}{Method}Event' => [
'App\Listeners\{Model}{Method}Listener',
]
```

6- generate events

7- extend all event with 'BaseModelEvent' or 'BaseModelPivotEvent' and remove all class code

8- get model in listener class with following command

```
$event->getModel();
```

```
$skeleton = new Alive2212\LaravelModelEventService();
echo $skeleton->echoPhrase('Hello, League!');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Babak Nodoust](https://github.com/https://github.com/Alive2212/)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

2935d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/096cb0a90e1515fd7369bc03f9c36ce1cd55b64c3ac777400ea3997c28de83cc?d=identicon)[Alive2212](/maintainers/Alive2212)

---

Top Contributors

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

---

Tags

Alive2212LaravelModelEventService

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alive2212-laravel-model-event-service/health.svg)

```
[![Health](https://phpackages.com/badges/alive2212-laravel-model-event-service/health.svg)](https://phpackages.com/packages/alive2212-laravel-model-event-service)
```

###  Alternatives

[illuminate/queue

The Illuminate Queue package.

20331.4M1.2k](/packages/illuminate-queue)[illuminate/bus

The Illuminate Bus package.

6043.8M409](/packages/illuminate-bus)[stancl/jobpipeline

Turn any series of jobs into Laravel listeners.

1226.6M10](/packages/stancl-jobpipeline)[prwnr/laravel-streamer

Events streaming package for Laravel that uses Redis 5 streams

110196.9k1](/packages/prwnr-laravel-streamer)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

3786.5k](/packages/harris21-laravel-fuse)[saeedvaziry/laravel-async

Run asynchronous code in Laravel without waiting for results

15310.0k](/packages/saeedvaziry-laravel-async)

PHPackages © 2026

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