PHPackages                             marcj/propel-eventdispatcher-behavior - 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. marcj/propel-eventdispatcher-behavior

ActivePropel-behavior[Utility &amp; Helpers](/categories/utility)

marcj/propel-eventdispatcher-behavior
=====================================

Integrates the Symfony2 EventDispatcher component in your Model classes for Propel2 alpha 3.

1.0.1(11y ago)299.0k42MITPHP

Since Nov 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/marcj/EventDispatcherBehavior)[ Packagist](https://packagist.org/packages/marcj/propel-eventdispatcher-behavior)[ RSS](/packages/marcj-propel-eventdispatcher-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (2)

EventDispatcherBehavior
=======================

[](#eventdispatcherbehavior)

[![Build Status](https://camo.githubusercontent.com/c7178a57cfe0f22a72893064a8c0b15c1bb42b56d0202cb978ca0d912d64636b/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f77696c6c647572616e642f4576656e74446973706174636865724265686176696f722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/willdurand/EventDispatcherBehavior)

Integrate the Symfony2 [EventDispatcher](https://github.com/symfony/EventDispatcher) component in your Model classes for Propel 2 alpha 3. Final Propel 2 release will have this integrated into core. This is only for guys using Propel 2 already till alpha 3 and need those behavior.

### Installation

[](#installation)

Requires this behavior in your `composer.json`:

```
{
    "require": {
        "willdurand/propel-eventdispatcher-behavior": "dev-master"
    }
}
```

Add the following line to your `propel.ini` or `build.properties` configuration file:

```
propel.behavior.eventdispatcher.class = vendor.willdurand.propel-eventdispatcher-behavior.src.EventDispatcherBehavior
```

> Note: `vendor.willdurand.propel-eventdispatcher-behavior.src` is the path of the behavior in dot-path notation.

Finally, adds this behavior to your `schema.xml`:

```

```

### ActiveRecord API

[](#activerecord-api)

This behavior adds a single method `getEventDispatcher()`. This method creates an instance of [`EventDispatcher`](https://github.com/symfony/EventDispatcher/blob/master/EventDispatcher.php)per class.

### Running tests

[](#running-tests)

Install dependencies:

```
php composer.phar install --dev

```

Run the test suite:

```
phpunit

```

### License

[](#license)

This behavior is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 70.4% 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 ~7 days

Total

2

Last Release

4189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/974147f78bc18a1b3838b2959678bab84bb15ce12b79ecb638c8444ff05bf3c3?d=identicon)[MArcJ](/maintainers/MArcJ)

---

Top Contributors

[![willdurand](https://avatars.githubusercontent.com/u/217628?v=4)](https://github.com/willdurand "willdurand (19 commits)")[![simitter](https://avatars.githubusercontent.com/u/340021?v=4)](https://github.com/simitter "simitter (3 commits)")[![K-Phoen](https://avatars.githubusercontent.com/u/66958?v=4)](https://github.com/K-Phoen "K-Phoen (2 commits)")[![Ex3v](https://avatars.githubusercontent.com/u/2785665?v=4)](https://github.com/Ex3v "Ex3v (1 commits)")[![ienzam](https://avatars.githubusercontent.com/u/607461?v=4)](https://github.com/ienzam "ienzam (1 commits)")[![marcj](https://avatars.githubusercontent.com/u/450980?v=4)](https://github.com/marcj "marcj (1 commits)")

---

Tags

eventevent dispatcherBehaviorpropel2

### Embed Badge

![Health badge](/badges/marcj-propel-eventdispatcher-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/marcj-propel-eventdispatcher-behavior/health.svg)](https://phpackages.com/packages/marcj-propel-eventdispatcher-behavior)
```

###  Alternatives

[doctrine/event-manager

The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.

6.1k501.1M115](/packages/doctrine-event-manager)[winzou/state-machine

A very lightweight yet powerful PHP state machine

52113.7M18](/packages/winzou-state-machine)

PHPackages © 2026

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