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
Requires
- php: >=5.4.6
- epa/epa: 0.4.0
Requires (Dev)
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);