PackageTrack
Sign in Get early access

sabre/event

sabre/event is a library for lightweight event-based programming

6.1.1 30M downloads/mo #833 most downloaded on Packagist sabre-io/event

What this package is like to depend on

Last release 1 months ago

07 Jul 2026

Release timing varies

gaps range from 9 days to 1.9 years

Nearly every release is documented

notes for 27 of 28 stable releases

Nothing withdrawn

no release was ever pulled

13 years old

29 releases · first in 2013

6 releases in the last 12 months

see the full history below

Release timeline

29 releases · Jun 2013 to Jul 2026
2014 2016 2018 2020 2022 2024 2026
Release Pre-release

Releases

latest 29
  1. 6.1.1 06 Jul 2026
    Release notes

    6.1.1 (2026-07-06)

    • #162 fix: Do not sort listeners differently depending on their type ( @come-nc )
    Open source →
    Release notes
    • #162 fix: Do not sort listeners differently depending on their type ( @come-nc )
    Open source →
  2. 6.1.0 27 Apr 2026
    Release notes

    6.1.0 (2026-04-27)

    This release supports PHP 8.2 and up. That is specified in composer.json so consumers should automatically select it only for projects that have minimum PHP 8.2 support.

    The 6.0.* release series, supporting PHP 7.4 8.0 8.1, will have bugfixes backported if relevant/needed for some time.

    Open source →
    Release notes
    • #153 chore: drop support for PHP 7.4 8.0 8.1 ( @phil-davis )
    Open source →
  3. 6.0.3 07 Jul 2026
    Release notes

    6.0.3 (2026-07-07)

    • #162 fix: Do not sort listeners differently depending on their type ( @come-nc )
    Open source →
  4. 6.0.2 27 Apr 2026
    Release notes

    6.0.2 (2026-04-27)

    This release continues to support PHP 7.4 and 8.0 through 8.5.

    This 6.0.* series will be maintained as needed for PHP 7.4 support.

    Open source →
    Release notes
    • #144 chore: adjust code for cs-fixer no-useless-else ( @phil-davis )
    • #146 chore: bump phpstan to v2 and add rector ( @phil-davis )
    • various bumps to versions of tools and actions in CI (@phil-davis)
    Open source →
  5. 6.0.1 06 Sep 2024
    Release notes

    6.0.1 (2024-09-06)

    As well as a few fixes to edge-case code flow, there are quite a lot of enhancements to the phpdoc parameter and return type declarations.
    You may find that code analysis tools like phpstan now find different things when you update to 6.0.1

    Open source →
    Release notes
    • #105 Adjust code for things reported by phpstan ( @phil-davis )
    • #109 Apply latest cs-fixer changes ( @phil-davis )
    • #113 Increase phpstan level to 9 ( @phil-davis )
    • #116 Change array<int...> to list<...> in PHP doc ( @phil-davis )
    • #120 use php-cs-fixer 3.49 ( @phil-davis )
    Open source →
  6. 6.0.0 29 Aug 2022
    Release notes
    • #96 Minor fixes to examples, tests and comments (@phil-davis)
    • #97 PHP min version 7.4 (@phil-davis)
    Open source →
  7. 5.1.9 07 Jul 2026
    Release notes

    5.1.9 (2026-07-07)

    • #162 fix: Do not sort listeners differently depending on their type (@come-nc)
    Open source →
  8. 5.1.8 27 Apr 2026
    Release notes

    5.1.8 (2026-04-27)

    • #147 chore: adjust code for cs-fixer no-useless-else (@phil-davis)
    • #151 fix: remove duplicate code from Promise.php and release (@phil-davis)
    • various bumps to versions of tools and actions in CI (@phil-davis)
    Open source →
    Release notes
    • #147 chore: adjust code for cs-fixer no-useless-else (@phil-davis)
    • #151 fix: remove duplicate code from Promise.php and release (@phil-davis)
    • various bumps to versions of tools and actions in CI (@phil-davis)
    Open source →
  9. 5.1.7 27 Aug 2024
    Release notes

    5.1.7 (2024-08-27)

    The code changes are just code-style applied by the newer php-cs-fixer. There are no actual bug fixes, and no change to behavior.

    Open source →
    Release notes
    • #132 allow php-cs-fixer major version 3 (@phil-davis)
    Open source →
  10. 5.1.6 26 Jul 2024
    Release notes

    5.1.6 (2024-07-26)

    Open source →
    Release notes
    • #128 Explicitly mark nullable parameter (@cedric-anne)
    Open source →
  11. 5.1.5 25 Jul 2024
    Release notes

    5.1.5 (2024-07-25)

    Open source →
    Release notes
    • #125 PHPdoc, CI and test changes to bring 5.1 up to PHP 8.3 (@phil-davis)
    • #126 PHP 8.4 compliance (@phil-davis)
    Open source →
  12. 5.1.4 04 Nov 2021
    Release notes
    • #93 version bump that was missed in 5.1.3 (@phil-davis)
    Open source →
  13. 5.1.3 04 Nov 2021
    Release notes
    • #88 Pass null to $microseconds for null $seconds (@TysonAndre)
    Open source →
  14. 5.1.2 03 Oct 2020
    Release notes
    • #82: Added support for PHP 8.0 (@phil-davis)
    Open source →
  15. 5.1.1 19 Sep 2020
    Release notes
    • declare experimental php8 support (@TysonAndre)
    • incorporated psalm types (@staabm)
    • updated build (@phil-davis)
    Open source →
  16. 5.1.0 31 Jan 2020
    Release notes
    • Added support for PHP 7.4, dropped support for PHP 7.0 (@phil-davis)
    • #49: Updated testsuite for phpunit8, added phpstan coverage (@phil-davis, @DeepDiver1975)
    Open source →
  17. 5.0.3 05 Mar 2018
    Release notes
    • Dropped remaining hhvm leftovers.
    • #55: Fixed typo in WildcardEmitterTrait (@SamMousa)
    • #54: export-ignore examples & tests in distribution (@staabm)
    Open source →
  18. 5.0.2 10 Jun 2017
    Release notes
    • #50: Fixed Promise\all to resolve immediately for empty arrays (@MadHed)
    • #48, #49: Performance optimisations for EmitterTrait and WildcardEmitterTrait (@lunixyacht).
    Open source →
  19. 5.0.1 29 Oct 2016
    Release notes
    • #45: Fixed Emitter class to use the correct interface. (@felixfbecker).
    Open source →
  20. 5.0.0 23 Oct 2016
    Release notes
    • #42: The coroutine function now supports return in the passed generator function. This allows you to more generally return a value. This is a BC break as this is a feature that was only made possible with PHP 7, and before the coroutine function would only ever return the last thing that was yielded. If you depended on that feature, replace your last yield with a return.
    Open source →
  21. 4.0.0 20 Sep 2016
    Release notes
    • sabre/event now requires PHP 7. If you need PHP 5.5 support, just keep using 3.0.0.
    • PHP 7 type hints are now used everywhere. We're also using strict_types.
    • Support for a new WildcardEmitter which allows you to listen for events using the * wildcard.
    • Removed deprecated functions Promise::error and Promise::all. Instead, use Promise::otherwise and Promise\all().
    • EventEmitter, EventEmitterTrait and EventEmitterInterface are now just called Emitter, EmitterTrait, and EmitterInterface.
    • When rejecting Promises, it's now required to use an Exception or Throwable. This makes the typical case simpler and reduces special cases.
    Open source →
  22. 3.0.0 05 Nov 2015
    Release notes
    • Now requires PHP 5.5!
    • Promise::all() is moved to Promise\all().
    • Aside from the Promise\all() function, there's now also Promise\race().
    • Promise\reject() and Promise\resolve() have also been added.
    • Now 100% compatible with the Ecmascript 6 Promise.
    Open source →
  23. 3.0.0-alpha1 24 Oct 2015 pre-release
    Release notes
    • This package now requires PHP 5.5.
    • #26: Added an event loop implementation. Also knows as the Reactor Pattern.
    • Renamed Promise::error to Promise::otherwise to be consistent with ReactPHP and Guzzle. The error method is kept for BC but will be removed in a future version.
    • #27: Support for Promise-based coroutines via the Sabre\Event\coroutine function.
    • BC Break: Promises now use the EventLoop to run "then"-events in a separate execution context. In practise that means you need to run the event loop to wait for any then/otherwise callbacks to trigger.
    • Promises now have a wait() method. Allowing you to make a promise synchronous and simply wait for a result (or exception) to happen.
    Open source →
  24. 2.0.2 19 May 2015
    Release notes
    • This release has no functional changes. It's just been brought up to date with the latest coding standards.
    Open source →
  25. 2.0.1 06 Oct 2014
    Release notes
    • Fixed: $priority was ignored in EventEmitter::once method.
    • Fixed: Breaking the event chain was not possible in EventEmitter::once.
    Open source →
  26. 2.0.0 21 Jun 2014
    Release notes
    • Added: When calling emit, it's now possible to specify a callback that will be triggered after each method handled. This is dubbed the 'continueCallback' and can be used to implement strategy patterns.
    • Added: Promise object!
    • Changed: EventEmitter::listeners now returns just the callbacks for an event, and no longer returns the list by reference. The list is now automatically sorted by priority.
    • Update: Speed improvements.
    • Updated: It's now possible to remove all listeners for every event.
    • Changed: Now uses psr-4 autoloading.
    Open source →
  27. 1.0.1 12 Jun 2014
    Release notes
    • hhvm compatible!
    • Fixed: Issue #4. Compatibility for PHP < 5.4.14.
    Open source →
  28. 1.0.0 19 Jul 2013
    Release notes
    • Added: removeListener, removeAllListeners
    • Added: once, to only listen to an event emitting once.
    • Added README.md.
    Open source →
  29. 0.0.1 28 Jun 2013

    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