ghostwriter/event-dispatcher
Event Dispatcher implementation.
6.1.3
6.1M downloads/mo
#1433 most downloaded on Packagist
ghostwriter/event-dispatcher
What this package is like to depend on
Last release 2 months ago
29 May 2026
Release timing varies
gaps range from 3 weeks to 9 months
Some releases are documented
notes for 13 of 24 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
24 releases · first in 2022
7 releases in the last 12 months
see the full history below
Release timeline
24 releases · Oct 2022 to May 2026Releases
latest 24-
6.1.329 May 2026 -
6.1.229 May 2026 -
6.1.120 Apr 2026Release notes
Open source →What's Changed
- Update
SECURITY.mdfile by @ghostwriter in #851 - Update phpunit/phpunit to version 13.1.4 by @ghostwriter in #852
- Update
phpunit.xml.distfile by @ghostwriter in #853 - Update phpunit/phpunit to version 13.1.5 by @ghostwriter in #856
- Update
phpunit.xml.distfile by @ghostwriter in #857 - Update phpunit/phpunit to version 13.1.6 by @ghostwriter in #861
- Update
phpunit.xml.distfile by @ghostwriter in #862 - Remove phar directory and phive.xml file by @ghostwriter in #866
- Update .gitattributes by @ghostwriter in #867
- Update phpunit/phpunit to version 13.1.7 by @ghostwriter in #871
- Update
phpunit.xml.distfile by @ghostwriter in #872 - Update ghostwriter/container to version 7.0.0 by @ghostwriter in #876
Full Changelog: 6.1.0...6.1.1
- Update
-
6.1.014 Apr 2026 -
6.0.223 Nov 2025 -
6.0.123 Nov 2025 -
6.0.020 Nov 2025 -
5.0.321 Feb 2025 -
5.0.215 Jul 2024 -
5.0.121 Jun 2024 -
5.0.022 May 2024Release notes
Open source →Added
- Method
event()was added to interfaceGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface - Method
listener()was added to interfaceGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface - Method
listeners()was added to interfaceGhostwriter\EventDispatcher\Interface\ListenerProviderInterface - Method
throwable()was added to interfaceGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface - Method
unbind()was added to interfaceGhostwriter\EventDispatcher\Interface\ListenerProviderInterface - Method
unsubscribe()was added to interfaceGhostwriter\EventDispatcher\Interface\ListenerProviderInterface
Changed
- Parameter 0 of
Ghostwriter\EventDispatcher\Interface\SubscriberInterface#__invoke()changed name fromprovidertolistenerProvider - The number of required arguments for
Ghostwriter\EventDispatcher\ListenerProvider#__construct()increased from 0 to 1 - The parameter
$eventofGhostwriter\EventDispatcher\Interface\EventDispatcherInterface#dispatch()changed fromGhostwriter\EventDispatcher\Interface\EventInterfacetoobject - The parameter
$reflectorofGhostwriter\EventDispatcher\ListenerProvider#__construct()changed fromGhostwriter\Container\Reflectorto a non-contravariantGhostwriter\Container\Interface\ContainerInterface - The return type of
Ghostwriter\EventDispatcher\EventDispatcher#dispatch()changed fromGhostwriter\EventDispatcher\Interface\EventInterfaceto the non-covariantobject - The return type of
Ghostwriter\EventDispatcher\Interface\EventDispatcherInterface#dispatch()changed fromGhostwriter\EventDispatcher\Interface\EventInterfacetoobject - The return type of
Ghostwriter\EventDispatcher\Interface\EventDispatcherInterface#dispatch()changed fromGhostwriter\EventDispatcher\Interface\EventInterfaceto the non-covariantobject
Removed
- Class
Ghostwriter\EventDispatcher\Exception\EventMustImplementEventInterfaceExceptionhas been deleted - Class
Ghostwriter\EventDispatcher\Exception\FailedToDetermineEventTypeExceptionhas been deleted - Class
Ghostwriter\EventDispatcher\Exception\MissingEventParameterExceptionhas been deleted - Class
Ghostwriter\EventDispatcher\Exception\MissingParameterTypeDeclarationExceptionhas been deleted - Class
Ghostwriter\EventDispatcher\Interface\EventInterfacehas been deleted - Class
Ghostwriter\EventDispatcher\Trait\EventTraithas been deleted - Constant
Ghostwriter\EventDispatcher\ListenerProvider::LISTENERSwas removed - Constant
Ghostwriter\EventDispatcher\ListenerProvider::SUBSCRIBERSwas removed - Method
Ghostwriter\EventDispatcher\Event\ErrorEvent#getEvent()was removed - Method
Ghostwriter\EventDispatcher\Event\ErrorEvent#getListener()was removed - Method
Ghostwriter\EventDispatcher\Event\ErrorEvent#getThrowable()was removed - Method
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getEvent()was removed - Method
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getListener()was removed - Method
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getThrowable()was removed - Method
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#getListenersForEvent()was removed - Method
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#listen()was removed - Method
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#remove()was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#getListenersForEvent()was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#hasListener()was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#listen()was removed - Method
Ghostwriter\EventDispatcher\ListenerProvider#remove()was removed
- Method
-
4.0.006 Feb 2024Release notes
Open source →Changed
- Rename Class
Ghostwriter\EventDispatcher\Interface\DispatcherInterfacetoGhostwriter\EventDispatcher\Interface\EventDispatcherInterface - Rename Class
Ghostwriter\EventDispatcher\DispatchertoGhostwriter\EventDispatcher\EventDispatcher - Parameter 0 of
Ghostwriter\EventDispatcher\Interface\ListenerProviderInterface#remove()changed name fromlistenerIdtolistener - The return type of
Ghostwriter\EventDispatcher\Interface\Event\ErrorEventInterface#getListener()changed frommixedtostring - The parameter
$listenerofGhostwriter\EventDispatcher\Event\ErrorEvent#__construct()changed frommixedtostring
- Rename Class
-
3.0.012 Nov 2023Release notes
Open source →Changed
- Drop
AbstractEventin favor ofEventTraitto avoid inheritance while still promoting reusability and reducing duplication. - Drop
AnonymousFunctionListener - Drop
CallableArrayStaticMethodListener - Drop
CallableArrayInstanceListener - Drop
InvokableListener - Namespace changed
Ghostwriter\EventDispatcher\ErrorEventtoGhostwriter\EventDispatcher\Event\ErrorEvent - Namespace changed
Ghostwriter\EventDispatcher\Interface\ErrorEventInterfacetoGhostwriter\EventDispatcher\Interface\Event\ErrorEventInterface
- Drop
-
2.0.013 Sep 2023Nothing published for this version
-
1.5.031 Jul 2023Nothing published for this version
-
1.4.211 Jul 2023Nothing published for this version
-
1.4.103 Apr 2023Nothing published for this version
-
1.4.017 Jan 2023Nothing published for this version
-
1.3.022 Dec 2022Nothing published for this version
-
1.2.009 Dec 2022Nothing published for this version
-
1.1.027 Nov 2022Nothing published for this version
-
1.0.214 Oct 2022Nothing published for this version
-
1.0.111 Oct 2022Nothing published for this version
-
1.0.011 Oct 2022Nothing published for this version