Skip to content

iron-bound-designs/psr-14-wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSR-14 WP

Very simple PSR-14 Event Dispatcher for WordPress.

Usage

use IronBound\Psr14WP\EventDispatcher;
use function IronBound\Psr14WP\listen;

listen( static function( Your_Event $event ) {
    // Do something with $event
} );

$event_dispatcher = new EventDispatcher();
$dispatched = $event_dispatcher->dispatch( new Your_Event() );

About

Simple PSR-14 implementation for WordPress

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages