PackageTrack
Sign in Get early access

zendframework/zend-eventmanager

Abandoned; use laminas/laminas-eventmanager. Trigger and listen to events within a PHP application

3.2.1 88M downloads/mo #1546 most downloaded on Packagist zendframework/zend-eventmanager

What this package is like to depend on

Last release 8 years ago

no release in 18 months

Release timing varies

gaps range from 4 weeks to 10 months

Rarely documented

notes for 14 of 71 stable releases

Nothing withdrawn

no release was ever pulled

14 years old

71 releases · first in 2012

0 releases in the last 12 months

see the full history below

Release timeline

37 releases · Oct 2012 to Apr 2018
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 60 of 71
  1. 3.2.1 25 Apr 2018
    Release notes

    Added

    • #66 adds support for PHP 7.2.

    Changed

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • Nothing.
    Open source →
    Release notes

    Added

    • #66 adds support for PHP 7.2.

    Changed

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • Nothing.
    Open source →
  2. 3.2.0 11 Jul 2017
    Release notes

    Added

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • #47 removes support for PHP 5.5 and HHVM.

    Fixed

    • Nothing.
    Open source →
    Release notes

    Added

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • #47 removes support for PHP 5.5 and HHVM.

    Fixed

    • Nothing.
    Open source →
  3. 3.1.0 19 Dec 2016
    Release notes

    Added

    Changes

    • #17 makes a number of internal changes to how listeners are stored in order to improve performance, by as much as 10% in the scenario used in the MVC layer.

      Additionally, it optimizes when the target and event arguments are injected into an event, eliminating that step entirely when either is unavailable.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • Nothing.
    Open source →
    Release notes

    Added

    • #26 publishes the documentation to https://zendframework.github.io/zend-eventmanager/

    Changes

    • #17 makes a number of internal changes to how listeners are stored in order to improve performance, by as much as 10% in the scenario used in the MVC layer.

      Additionally, it optimizes when the target and event arguments are injected into an event, eliminating that step entirely when either is unavailable.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • Nothing.
    Open source →
  4. 3.0.1 18 Feb 2016
    Release notes

    Added

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • #24 updates the zend-stdlib dependency to ^2.7.3 || ^3.0, allowing either major version.
    Open source →
    Release notes

    Added

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • #24 updates the zend-stdlib dependency to ^2.7.3 || ^3.0, allowing either major version.
    Open source →
  5. 3.0.0 12 Jan 2016
    Release notes

    Added

    • Migration documentation was added.
    • Automated benchmarks were added.
    • EventManager::__construct() now accepts an optional SharedEventManagerInterface instance as the first argument, and an optional array of identifiers as the second. As identifiers have no meaning without a shared manager present, they are secondary to providing the shared manager.
    • EventManagerInterface::trigger() changes its signature to trigger($eventName, $target = null, $argv = []); each argument has exactly one possible meaning; the $eventName can only be a string event name. The fourth $callback argument is removed.
    • EventManagerInterface::triggerUntil() changes its signature to triggerUntil(callable $callback, $eventName, $target = null, $argv = null). Each argument has exactly one meaning.
    • EventManagerInterface adds two new methods for triggering provided EventInterface arguments: triggerEvent(EventInterface $event) and triggerEventUntil(callable $callback, EventInterface $event).
    • EventManagerInterface::attach() and detach() change their signatures to attach($eventName, callable $listener, $priority = 1) and detach(callable $listener, $eventName = null), respectively. Note that $eventName can now only be a string event name, not an array or Traversable.
    • EventManagerInterface::setIdentifiers() and addIdentifiers() change their signatures to each only accept an array of identifiers.
    • SharedEventManagerInterface::getListeners() changes signature to getListeners(array $identifiers, $eventName) and now guarantees return of an array. Note that the second argument is now required.
    • SharedEventManagerInterface::attach() changes signature to attach($identifier, $eventName, callable $listener, $priority = 1). The $identifier and $eventName must be strings.
    • SharedEventManagerInterface::detach() changes signature to detach(callable $listener, $identifier = null, $eventName = null); $identifier and $eventName must be strings if passed.
    • ListenerAggregateInterface::attach() adds an optional $priority = 1 argument. This was used already in v2, but not dictated by the interface.
    • FilterInterface::attach() and detach() have changed signature to attach(callable $callback) and detach(callable $ilter), respectively.
    • LazyListener allows wrapping:
      • fetching a listener service from a container-interop container, and
      • invoking a designated listener method with the provided event.
    • LazyEventListener extends LazyListener, and provides metadata for discovering the intended event name and priority at which to attach the lazy listener; these are consumed by:
    • LazyListenerAggregate, which, provided a list of LazyEventListeners and/or definitions to use to create them, acts as an aggregate for attaching a number of such listeners at once.
    • #20 updates the trait Zend\EventManager\Test\EventListenerIntrospectionTrait so that the implementation will work with the v3 changes; the tests written for v2 continue to pass, allowing this trait to be used to provide compatibility testing between v2 and v3.

    Deprecated

    • Nothing.

    Removed

    • GlobalEventManager and StaticEventManager are removed (with prejudice!).
    • ProvidesEvents, which was previously deprecated, is removed.
    • EventManagerInterface::setSharedManager() is removed. Shared managers are now expected to be injected during instantiation.
    • EventManagerInterface::getEvents() and getListeners() are removed; they had now purpose within the implementation.
    • EventManagerInterface::setEventClass() was renamed to setEventPrototype(), which now expects an EventInterface instance. That instance will be cloned whenever a new event is created.
    • EventManagerInterface::attachAggregate() and detachAggregate() are removed. Users should use the attach() and detach() methods of the aggregates themselves.
    • SharedEventAggregateAwareInterface and SharedListenerAggregateInterface are removed. This was an undocumented and largely unused feature.
    • SharedEventManagerAwareInterface is removed. A new interface, SharedEventsCapableInterface defines the getSharedManager() method from the interface, and EventManagerInterface extends that new interface.
    • SharedEventManagerInterface::getEvents() is removed, as it had no purpose in the implementation.
    • ResponseCollection::setStopped() no longer implements a fluent interface.

    Fixed

    • FilterIterator::insert() has been modified to raise an exception if the value provided is not a callable.
    Open source →
  6. 2.6.4 12 Dec 2017
    Release notes

    Added

    • Nothing.

    Changed

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • #68 fixes an issue whereby triggerListeners() was not resetting the event instance's "stop propagation" flag before triggering listeners; this could result in all listeners for a given event being skipped in cases where the event manager instance triggers multiple events.
    Open source →
  7. 2.6.3 18 Feb 2016
    Release notes

    Added

    • Nothing.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • #23 updates the requirements to allow usage with PHP 7, bumps zend-stdlib to ^2.7, and requires PHP 7 builds to pass continuous integration.
    Open source →
  8. 2.6.2 12 Jan 2016
    Release notes

    Added

    • #19 adds a new trait, Zend\EventManager\Test\EventListenerIntrospectionTrait, intended for composition in unit tests. It provides a number of methods that can be used to retrieve listeners with or without associated priority, and the assertion assertListenerAtPriority(callable $listener, $priority, $event, EventManager $events, $message = ''), which can be used for testing that a listener was registered at the specified priority with the specified event.

      The features in this patch are intended to facilitate testing against both version 2 and version 3 of zend-eventmanager, as it provides a consistent API for retrieving lists of events and listeners between the two versions.

    Deprecated

    • Nothing.

    Removed

    • Nothing.

    Fixed

    • Nothing.
    Open source →
  9. 2.6.1 06 Oct 2015

    Nothing published for this version

  10. 2.6.0 29 Sep 2015
    Release notes

    Added

    • Added Zend\EventManager\SharedEventsCapableInterface. This interface will largely replace Zend\EventManager\SharedEventManagerAwareInterface in version 3, and the latter was updated to extend it.
    • Added EventManager::triggerEvent(EventInterface $event) as a forwards-compatibility feature.
    • Add EventManager::triggerEventUntil(callable $callback, EventIterface $event) as a forwards-compatibility feature.
    • Adds Athletic benchmarks to aid in gauging performanc impact of changes; these are a development change only.

    Deprecated

    • Marked GlobalEventManager as deprecated; this class will be removed in version 3.
    • Marked StaticEventManager as deprecated; this class will be removed in version 3.
    • Marked SharedListenerAggregateInterface as deprecated; this interface will be removed in version 3.
    • Marked SharedEventAggregateAwareInterface as deprecated; this interface will be removed in version 3.
    • Marked SharedEventManagerAwareInterface as deprecated; this interface will be removed in version 3.
    • Marked EventManager::setSharedManager() as deprecated; this method will be removed in version 3.
    • Marked EventManager::unsetSharedManager() as deprecated; this method will be removed in version 3.
    • Marked EventManagerInterface:: and EventManager::getEvents() as deprecated; this method will be removed in version 3.
    • Marked EventManagerInterface:: and EventManager::getListeners() as deprecated; this method will be removed in version 3.
    • Marked EventManagerInterface:: and Eventmanager::setEventClass() as deprecated; this method is renamed to setEventPrototype(EventInterface $event) in version 3.
    • Marked EventManagerInterface:: and EventManager::attachAggregate() as deprecated; this method will be removed in version 3.
    • Marked EventManagerInterface:: and EventManager::detachAggregate() as deprecated; this method will be removed in version 3.
    • Marked SharedEventManagerInterface:: and SharedEventManager::getEvents() as deprecated; this method will be removed in version 3.

    Removed

    • Nothing.

    Fixed

    • Nothing.
    Open source →
  11. 2.5.2 16 Jul 2015
    Release notes

    Added

    • #5 adds a number of unit tests to improve test coverage, and thus maintainability and stability.

    Deprecated

    • Nothing.

    Removed

    • #3 removes some PHP 5.3- and 5.4-isms (such as marking Traits as requiring 5.4, and closing over a copy of $this) from the test suite.

    Fixed

    • #5 fixes a bug in FilterIterator that occurs when attempting to extract from an empty heap.
    Open source →
  12. 2.5.1 03 Jun 2015

    Nothing published for this version

  13. 2.5.0 03 Jun 2015

    Nothing published for this version

  14. 2.4.13 07 May 2015
    Release notes

    zend-eventmanager 2.4.13

    Open source →
  15. 2.4.12 no date
    Release notes

    zend-eventmanager 2.4.12

    Open source →
  16. 2.4.11 no date
    Release notes

    zend-eventmanager 2.4.11

    Open source →
  17. 2.4.10 no date
    Release notes

    zend-eventmanager 2.4.10

    Open source →
  18. 2.4.9 no date

    Nothing published for this version

  19. 2.4.8 no date

    Nothing published for this version

  20. 2.4.7 no date

    Nothing published for this version

  21. 2.4.6 no date

    Nothing published for this version

  22. 2.4.5 no date

    Nothing published for this version

  23. 2.4.4 no date

    Nothing published for this version

  24. 2.4.3 no date

    Nothing published for this version

  25. 2.4.2 no date

    Nothing published for this version

  26. 2.4.1 no date

    Nothing published for this version

  27. 2.4.0 23 Mar 2015

    Nothing published for this version

  28. 2.3.9 13 Jan 2015

    Nothing published for this version

  29. 2.3.8 no date

    Nothing published for this version

  30. 2.3.7 no date

    Nothing published for this version

  31. 2.3.6 no date

    Nothing published for this version

  32. 2.3.5 no date

    Nothing published for this version

  33. 2.3.4 no date

    Nothing published for this version

  34. 2.3.3 11 Aug 2014

    Nothing published for this version

  35. 2.3.2 no date

    Nothing published for this version

  36. 2.3.1 15 Apr 2014

    Nothing published for this version

  37. 2.3.0 12 Mar 2014

    Nothing published for this version

  38. 2.2.10 05 Mar 2014

    Nothing published for this version

  39. 2.2.9 no date

    Nothing published for this version

  40. 2.2.8 no date

    Nothing published for this version

  41. 2.2.7 no date

    Nothing published for this version

  42. 2.2.6 no date

    Nothing published for this version

  43. 2.2.5 31 Oct 2013

    Nothing published for this version

  44. 2.2.4 21 Aug 2013

    Nothing published for this version

  45. 2.2.3 no date

    Nothing published for this version

  46. 2.2.2 22 Jul 2013

    Nothing published for this version

  47. 2.2.1 12 Jun 2013

    Nothing published for this version

  48. 2.2.0 10 May 2013

    Nothing published for this version

  49. 2.1.6 17 Apr 2013

    Nothing published for this version

  50. 2.1.5 no date

    Nothing published for this version

  51. 2.1.4 13 Mar 2013

    Nothing published for this version

  52. 2.1.3 19 Feb 2013

    Nothing published for this version

  53. 2.1.2 no date

    Nothing published for this version

  54. 2.1.1 06 Feb 2013

    Nothing published for this version

  55. 2.1.0 29 Jan 2013

    Nothing published for this version

  56. 2.0.8 26 Jan 2013

    Nothing published for this version

  57. 2.0.7 no date

    Nothing published for this version

  58. 2.0.6 19 Dec 2012

    Nothing published for this version

  59. 2.0.5 20 Nov 2012

    Nothing published for this version

  60. 2.0.4 no date

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive