The EventDispatcher component of the Snicco project provides tools that allow your application components to communicate with each other by dispatching events and listening to them.
composer require snicco/event-dispatcher
The EventDispatcher component is a completely standalone package with zero external dependencies.
The documentation can be found in the README of the BetterWPHooks, which is a small adapter around this package.
If you want to use this package in a non WordPress project simply skip the WordPress specific parts of the documentation.
This repository is a read-only split of the development repo of the Snicco project.
This is how you can contribute.
Please report issues in the Snicco monorepo.
If you discover a security vulnerability, please follow our disclosure procedure.