league/event
Event package
3.0.3
161M downloads/mo
#263 most downloaded on Packagist
thephpleague/event
What this package is like to depend on
Last release 1 years ago
14 Mar 2025
Release timing varies
gaps range from 2 weeks to 3.5 years
Most releases are documented
notes for 12 of 17 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
17 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
17 releases · Jun 2014 to Mar 2025
2015
2017
2019
2021
2023
2025
Releases
latest 17-
3.0.304 Sep 2024 -
3.0.229 Oct 2022 -
3.0.128 Oct 2022Release notes
Open source →Fixed
- Ensure one-time-listener is removed from the sorted list of listeners in the prioritized sub-class
-
3.0.029 Sep 2020Release notes
Open source →- PSR-14 is now supported.
- Classes and interfaces renamed to match PSR terminology.
-
2.3.014 Mar 2025Nothing published for this version
-
2.2.026 Nov 2018 -
2.1.221 May 2015Release notes
Open source →Fixed
- Event emitting now respects the order in which the listeners were added in addition to priority.
-
2.1.130 Mar 2015Release notes
Open source →Altered
- Emitter::emitBatch now uses a foreach instead of array map to allow better exception handling.
-
2.1.012 Feb 2015Release notes
Open source →Added
- EmitterAwareInterface: an interface to be EmitterInterface aware.
- EmitterAwareTrait: a default implementation to EmitterAwareInterface
Changed
- EmitterTrait: The EmitterAware interface was extracted from this, which it now uses.
-
2.0.009 Dec 2014Release notes
Open source →Added
- EventInterface: an interface is derived from the AbstractEvent class to allow more flexible type hinting and custom implementations. All the code expecting an AbstractEvent now expect an EventInterface implementation, however AbstractEvent covers the most use cases.
- Event::named: named construtor to create string based events
- CallbackListener::fromCallable: create a callback listener from a callable.
- ListenerAcceptorInterface: An interface (distilled from the EmitterInterface) to only focus on accepting listeners.
- ListenerProviderInterface: An interface to focus on providing the Emitter with new listeners.
- EmitterInterface::useListenerProvider: Allows you to use an implementation of the ListenerProviderInterface to add listeners.
- EmitterInterface::releaseGeneratedEvents: Eases the way events are released from GeneratorInterface implementations.
Altered
- All event typehints have been changed from AbstractEvent to EventInterface
Removed
- PriorityEmitter: this functionality is now part of the standard emitter.
-
1.0.111 Oct 2014Nothing published for this version
-
1.0.009 Sep 2014Release notes
Open source →Altered
- The Emitter now checks if propagation has been stopped before invoking the first listener.
- Renamed ListenerAbstract to AbstractListener
-
0.3.106 Sep 2014Release notes
Open source →Added
- Wildcard listeners: When specifying
*as the event name to listen to it will listen to all events. Wildcard listeners will be invoked AFTER named event listeners.
Fixed
- Various code style fixes.
- Corrected priority emitter sorting.
Altered
- Listener invocation is now responsible for retrieving the events attached to an event name. [internal]
- Wildcard listeners: When specifying
-
0.3.024 Aug 2014Release notes
Open source →Added
- EmitterInterface: an interface is derived from the Emitter class to allow more flexible type hinting and custom implementations. All the code expecting an Emitter now expect an EmitterInterface implementation.
-
0.2.008 Jul 2014Nothing published for this version
-
0.1.124 Jun 2014Nothing published for this version
-
0.1.012 Jun 2014Nothing published for this version