PHPackages                             neylsongularte/eloquent-extra-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. [Database &amp; ORM](/categories/database)
4. /
5. neylsongularte/eloquent-extra-events

ActiveLibrary[Database &amp; ORM](/categories/database)

neylsongularte/eloquent-extra-events
====================================

Eventos adicionais para o eloquent

1.0.0(8y ago)1752.1k↓42.3%7[2 issues](https://github.com/neylsongularte/eloquent-extra-events/issues)PHPPHP &gt;=5.5.9

Since May 10Pushed 8y ago2 watchersCompare

[ Source](https://github.com/neylsongularte/eloquent-extra-events)[ Packagist](https://packagist.org/packages/neylsongularte/eloquent-extra-events)[ RSS](/packages/neylsongularte-eloquent-extra-events/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (12)Used By (0)

eloquent-extra-events
=====================

[](#eloquent-extra-events)

[![Total Downloads](https://camo.githubusercontent.com/07ab1cde7458d6f011b443e9d58a9a250e736db120bfd37b3eaef9fe21edb10f/68747470733a2f2f706f7365722e707567782e6f72672f6e65796c736f6e67756c617274652f656c6f7175656e742d65787472612d6576656e74732f646f776e6c6f616473)](https://packagist.org/packages/neylsongularte/eloquent-extra-events)[![Monthly Downloads](https://camo.githubusercontent.com/56e98923841b25e1149165df4b7b743c666b2faadd857bd265bbdbf981ed9fc2/68747470733a2f2f706f7365722e707567782e6f72672f6e65796c736f6e67756c617274652f656c6f7175656e742d65787472612d6576656e74732f642f6d6f6e74686c79)](https://packagist.org/packages/neylsongularte/eloquent-extra-events)[![Daily Downloads](https://camo.githubusercontent.com/ddaba18c9e294a425901b00ce1a36d35e93262b0886198830f41d39b13b2fb01/68747470733a2f2f706f7365722e707567782e6f72672f6e65796c736f6e67756c617274652f656c6f7175656e742d65787472612d6576656e74732f642f6461696c79)](https://packagist.org/packages/neylsongularte/eloquent-extra-events)[![Latest Stable Version](https://camo.githubusercontent.com/816a749f2e74a1bcb97d04bf1bdedb0688e789a6f6a9a60a2dda49279feafccd/68747470733a2f2f706f7365722e707567782e6f72672f6e65796c736f6e67756c617274652f656c6f7175656e742d65787472612d6576656e74732f762f737461626c65)](https://packagist.org/packages/neylsongularte/eloquent-extra-events)[![Latest Unstable Version](https://camo.githubusercontent.com/09dc7be57f4168ff7573f89f79a296dc0bad426790bc4d5e5ec828ce8cd69610/68747470733a2f2f706f7365722e707567782e6f72672f6e65796c736f6e67756c617274652f656c6f7175656e742d65787472612d6576656e74732f762f756e737461626c65)](https://packagist.org/packages/neylsongularte/eloquent-extra-events)[![License](https://camo.githubusercontent.com/54a49116f46b8b557c39d9b36c05dacd08657f72a6b3d7c297ee32e8c40ab3cd/68747470733a2f2f706f7365722e707567782e6f72672f6e65796c736f6e67756c617274652f656c6f7175656e742d65787472612d6576656e74732f6c6963656e7365)](https://packagist.org/packages/neylsongularte/eloquent-extra-events)

Install:

```
For 5.2.x, 5.3.x and 5.4.x:
composer require neylsongularte/eloquent-extra-events:0.3.5

```

```
For 5.5.x:
composer require neylsongularte/eloquent-extra-events

```

In your model:

`use NeylsonGularte\EloquentExtraEvents\ExtraEventsTrait;`

Events:

- eloquent.syncing
- eloquent.synced
- eloquent.attaching
- eloquent.attached
- eloquent.detaching
- eloquent.detached

Listen events in `App\Providers\AppServiceProvider`:

```
In 5.2.x and 5.3.x:
Event::listen('eloquent.syncing*', function (array $eventData) {
});

In 5.4.x and 5.5.x:
Event::listen('eloquent.syncing*', function ($eventName, array $eventData) {
});

```

Available properties:

- `$eventData['parent_model']`: `string` e.g. `'App\Models\Model'`
- `$eventData['parent_id']`: `integer` e.g. `42`
- `$eventData['related_model']`: `string` e.g. `'App\Models\Model'`
- (except eloquent.synced) `$eventData['related_ids']`: `array` e.g. `[31,41]`
- (Only eloquent.detached) `$eventData['results']`: `integer` e.g. `2`
- (Only eloquent.synced) `$eventData['changes']`: `array` with the following keys:
    - `'attached'`: `array` e.g. `[1, 8]`
    - `'detached'`: `array` e.g. `[15, 16]`
    - `'updated'`: `array` e.g. `[23]`

Note: sync trigger attach and detach.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

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

Recently: every ~72 days

Total

11

Last Release

2964d ago

Major Versions

0.3.5 → 1.0.02017-10-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/84199a3721bee7432c3a61dc91c0cd3e68a5847b24eb2949222edcffaabc1f00?d=identicon)[neylsongularte](/maintainers/neylsongularte)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/neylsongularte-eloquent-extra-events/health.svg)

```
[![Health](https://phpackages.com/badges/neylsongularte-eloquent-extra-events/health.svg)](https://phpackages.com/packages/neylsongularte-eloquent-extra-events)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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