zendframework / zend-eventmanager
Trigger and listen to events within a PHP application
Package info
github.com/zendframework/zend-eventmanager
pkg:composer/zendframework/zend-eventmanager
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- athletic/athletic: ^0.1
- container-interop/container-interop: ^1.1.0
- phpunit/phpunit: ^5.7.27 || ^6.5.8 || ^7.1.2
- zendframework/zend-coding-standard: ~1.0.0
- zendframework/zend-stdlib: ^2.7.3 || ^3.0
Suggests
- container-interop/container-interop: ^1.1.0, to use the lazy listeners feature
- zendframework/zend-stdlib: ^2.7.3 || ^3.0, to use the FilterChain feature
This package is auto-updated.
Last update: 2020-01-29 15:15:46 UTC
README
Repository abandoned 2019-12-31
This repository has moved to laminas/laminas-eventmanager.
zend-eventmanager is designed for the following use cases:
- Implementing simple subject/observer patterns.
- Implementing Aspect-Oriented designs.
- Implementing event-driven architectures.
The basic architecture allows you to attach and detach listeners to named events, both on a per-instance basis as well as via shared collections; trigger events; and interrupt execution of listeners.
- File issues at https://github.com/zendframework/zend-eventmanager/issues
- Documentation is at https://zendframework.github.io/zend-eventmanager/
For migration from version 2 to version 3, please read the migration documentation.
Benchmarks
We provide scripts for benchmarking zend-eventmanager using the
Athletic framework; these can be
found in the benchmarks/ directory.
To execute the benchmarks you can run the following command:
$ vendor/bin/athletic -p benchmarks