PHPackages                             phpextra/event-manager-silex-provider - 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. phpextra/event-manager-silex-provider

Abandoned → [phpextra/event-manager#4.0.0](/?search=phpextra%2Fevent-manager%234.0.0)ArchivedLibrary

phpextra/event-manager-silex-provider
=====================================

1.0.0(12y ago)19501[1 PRs](https://github.com/phpextra/event-manager-silex-provider/pulls)MITPHP

Since Apr 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/phpextra/event-manager-silex-provider)[ Packagist](https://packagist.org/packages/phpextra/event-manager-silex-provider)[ RSS](/packages/phpextra-event-manager-silex-provider/feed)WikiDiscussions master Synced yesterday

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

\#Silex Provider for EventManager

No configuration is needed.

This provider will replace your EventDispatcher class. Default symfony events were not removed and have higher priority. It means that PHPExtra event is always running after the sf event.

Below is a reference, to see how events from PHPExtra are mapped onto vanilla sf events. All events are cancellable (propagationStop property in sf event). Unlike in symfony, cancellable events are still sent to all listeners. This behaviour may change in future release of event manager.

Symfony event mapping
---------------------

[](#symfony-event-mapping)

```
kernel.request
PHPExtra\EventManager\Silex\Event\RequestEvent
Symfony\Component\HttpKernel\Event\GetResponseEvent

kernel.controller
PHPExtra\EventManager\Silex\Event\PreDispatchEvent
Symfony\Component\HttpKernel\Event\FilterControllerEvent

kernel.view
PHPExtra\EventManager\Silex\Event\PostDispatchEvent
Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent

kernel.response
PHPExtra\EventManager\Silex\Event\ResponseEvent
Symfony\Component\HttpKernel\Event\FilterResponseEvent

kernel.finish_request
PHPExtra\EventManager\Silex\Event\PostRequestEvent
Symfony\Component\HttpKernel\Event\FinishRequestEvent

kernel.terminate
PHPExtra\EventManager\Silex\Event\PostResponseEvent
Symfony\Component\HttpKernel\Event\PostResponseEvent

```

\##Installation and usage

If you are using logger, it will be automatically injected into the event manager. Every class can now be a listener.

```
$app = new Silex\Application(array('debug' => true));
$app->register(new \PHPExtra\EventManager\Silex\EventManagerProvider());

$em = $app['event_manager'];

$em->addListener(new \PHPExtra\EventManager\Listener\AnonymousListener(function(RequestEvent $event){
    echo "Im in RequestEvent (Sf GetResponseEvent)";
}));

$em->addListener(new \PHPExtra\EventManager\Listener\AnonymousListener(function(SilexKernelEvent $event){
    echo "Im in some Symfony KernelEvent !";
}));

$em->addListener($app['my_controller']);

$em->addListener($app['mailer']);

...

```

\##Exception handling

Exceptions that will occur during an event are suppressed in production mode. In development, the event manager will break the event loop and re-throw all exceptions.

```
$em->setThrowExceptions(false); // suppress exceptions and continue event loop

```

\##Contributing

All code contributions must go through a pull request. Fork the project, create a feature branch, and send me a pull request. To ensure a consistent code base, you should make sure the code follows the [coding standards](http://symfony.com/doc/2.0/contributing/code/standards.html). If you would like to help take a look at the list of issues.

\##Requirements

See **composer.json** for a full list of dependencies.

\##Authors

Jacek Kobus -

License information
-------------------

[](#license-information)

```
See the file LICENSE.txt for copying permission.

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

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

Total

3

Last Release

3994d ago

Major Versions

1.0.0 → 2.0.x-dev2014-10-29

2.0.x-dev → 3.0.x-dev2015-06-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/85f3695da9474a49d00d00449442d8f8bcbc21abfcae1c9d51a2762d0cad87f7?d=identicon)[jkobus](/maintainers/jkobus)

---

Top Contributors

[![jkobus](https://avatars.githubusercontent.com/u/1527096?v=4)](https://github.com/jkobus "jkobus (6 commits)")

### Embed Badge

![Health badge](/badges/phpextra-event-manager-silex-provider/health.svg)

```
[![Health](https://phpackages.com/badges/phpextra-event-manager-silex-provider/health.svg)](https://phpackages.com/packages/phpextra-event-manager-silex-provider)
```

###  Alternatives

[stikmanw/silex-newrelic

Integrate the NewRelic PHP API into Silex framework

2014.7k](/packages/stikmanw-silex-newrelic)

PHPackages © 2026

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