epa/epa-plugins

Plugins for Epa

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/epa/epa-plugins

0.2.1 2014-12-16 17:20 UTC

This package is auto-updated.

Last update: 2025-09-29 01:58:43 UTC


README

These are plugins to use with Epa.

Currently there is one plugin: MetaEventNamePlugin. This plugin can be used to name events based on the @event tag on a plugin doccomment:

/**
 * @event MyCustomEventName
 */
public class MyPlugin implements \Epa\Api\Plugin
{}

This allows plugins to register handlers for the event MyCustomEventName instead of only the classname.

You can add the plugin using the Epa library as follows:

$plugin = \EpaPlugins\MetaEventNamePluginFactory::create();
$eventDispatcher = \Epa\EventDispatcherFactory::create();
$eventDispatcher->addPlugin($plugin);