Scrutinizer Code Quality Code Coverage Build Status

A ZF2 Plugin Manager for ZF2 Event Managers.


composer require abacaphiliac/zend-eventmanager-pluginmanager


  1. add Abacaphiliac\Zend\EventManager\PluginManager module to your ZF2 application module config.
  2. create a service-manager config block with key event_managers in your application config.
  3. register a named event manager in the event_managers config, via invokables, factories, etc.
  4. get your named event manager from the service locator!
$eventManager = $serviceLocator->get('EventManagers')->get('MyNamedEventManager');


ZF2 EventManager, ModuleManager, MVC, and ServiceManager.

dev deployments include the entire framework because the Module collaboration test boots the ModuleManager, which has many hidden dependencies in most of the ZF tags.

See composer.json.


composer install && vendor/bin/phing

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.