PHPackages                             rdehnhardt/model-observers - 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. rdehnhardt/model-observers

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

rdehnhardt/model-observers
==========================

Make model observers easy

1.0.2(8y ago)16141[1 PRs](https://github.com/rdehnhardt/model-observers/pulls)MITPHPPHP &gt;=5.5.0

Since Jul 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/rdehnhardt/model-observers)[ Packagist](https://packagist.org/packages/rdehnhardt/model-observers)[ RSS](/packages/rdehnhardt-model-observers/feed)WikiDiscussions master Synced yesterday

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

model-observer
==============

[](#model-observer)

Set observer for model

Installation
------------

[](#installation)

Run the following command to get the latest version package

```
composer require rdehnhardt/model-observer

```

```
// app/Customer.php
namespace App;

use Illuminate\Database\Eloquent\Model;
use Rdehnhardt\ModelObserver\ModelObserver;

class Customer extends Model
{
    use ModelObserver;

    /**
     * Models Observer
     *
     * @var string
     */
    protected static $observer = UserObserver::class;
}
```

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

[](#contributing)

Contributions are welcomed; to keep things organized, all bugs and requests should be opened on github issues tab for the main project in the [rdehnhardt/model-observer/issues](https://github.com/rdehnhardt/model-observer/issues).

All pull requests should be made to the branch Develop, so they can be tested before being merged into the master branch.

Having problems?
----------------

[](#having-problems)

If you are having problems with the use of this package, there is likely someone has faced the same problem. You can find common answers to their problems:

- [Github Issues](https://github.com/rdehnhardt/model-observer/issues?page=1&state=closed)

### License

[](#license)

The model-observer package is open source software licensed under the [license MIT](http://opensource.org/licenses/MIT)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3281d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7077461?v=4)[Renato Dehnhardt](/maintainers/rdehnhardt)[@rdehnhardt](https://github.com/rdehnhardt)

---

Top Contributors

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

---

Tags

eloquentlaravel-5-packagelaraveleloquentobservers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rdehnhardt-model-observers/health.svg)

```
[![Health](https://phpackages.com/badges/rdehnhardt-model-observers/health.svg)](https://phpackages.com/packages/rdehnhardt-model-observers)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M90](/packages/mongodb-laravel-mongodb)[spatie/laravel-sluggable

Generate slugs when saving Eloquent models

1.5k12.4M294](/packages/spatie-laravel-sluggable)[watson/validating

Eloquent model validating trait.

9733.4M53](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k322.4k1](/packages/cybercog-laravel-love)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

592452.8k2](/packages/spiritix-lada-cache)

PHPackages © 2026

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