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 1mo ago

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 54% 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

3229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a39d732d750ee66c26cf1017c3d58b19354ddb0399a8adba3ecd7fa8ac51ceef?d=identicon)[rdehnhardt](/maintainers/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

[cviebrock/eloquent-sluggable

Easy creation of slugs for your Eloquent models in Laravel

4.0k13.6M251](/packages/cviebrock-eloquent-sluggable)[silber/bouncer

Eloquent roles and abilities.

3.6k4.4M25](/packages/silber-bouncer)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M46](/packages/watson-validating)[cybercog/laravel-love

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

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)

PHPackages © 2026

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