PHPackages                             kelemen/observer - 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. kelemen/observer

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

kelemen/observer
================

Observer/observable classes and traits

1.0.0(10y ago)02.7kMITPHPPHP &gt;= 5.3.7

Since Jul 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ricco24/observer)[ Packagist](https://packagist.org/packages/kelemen/observer)[ RSS](/packages/kelemen-observer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

### Observer

[](#observer)

#### Usage

[](#usage)

```
class Foo extends Kelemen\Observer
{
    use Kelemen\ObserverBehavior;

    public function __construct($bar)
    {
        $bar->attach($this);
    }

    public function someFunction()
    {
        // process
    }
}

class Bar extends Kelemen\Observable
{
    use Kelemen\ObservableBehavior;

    public function __construct()
    {
        $this->setState('someFunction')
    }
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

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

3967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72f58e3d494056872274a7cd14323f13cc76e52c966eade5dec3129ea378c182?d=identicon)[kelemen.samuel](/maintainers/kelemen.samuel)

---

Top Contributors

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

---

Tags

phpobserverobservable

### Embed Badge

![Health badge](/badges/kelemen-observer/health.svg)

```
[![Health](https://phpackages.com/badges/kelemen-observer/health.svg)](https://phpackages.com/packages/kelemen-observer)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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