laminas / laminas-eventmanager
Trigger and listen to events within a PHP application
Fund package maintenance!
Community Bridge
Installs: 13 952 313
Dependents: 124
Suggesters: 7
Security: 0
Stars: 829
Watchers: 18
Forks: 5
Open Issues: 11
Requires
- php: ^7.3 || ^8.0
- laminas/laminas-zendframework-bridge: ^1.0
Requires (Dev)
- container-interop/container-interop: ^1.1
- laminas/laminas-coding-standard: ~1.0.0
- laminas/laminas-stdlib: ^2.7.3 || ^3.0
- phpbench/phpbench: ^0.17.1
- phpunit/phpunit: ^8.5.8
Suggests
- container-interop/container-interop: ^1.1, to use the lazy listeners feature
- laminas/laminas-stdlib: ^2.7.3 || ^3.0, to use the FilterChain feature
Replaces
- zendframework/zend-eventmanager: ^3.2.1
- 3.4.x-dev
- 3.3.x-dev
- 3.3.1
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.13
- 2.4.12
- 2.4.11
- 2.4.10
- 2.4.9
- 2.4.8
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.4.0rc7
- 2.4.0rc6
- 2.4.0rc5
- 2.4.0rc4
- 2.4.0rc3
- 2.4.0rc2
- 2.4.0rc1
- 2.3.9
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.2.0rc3
- 2.2.0rc2
- 2.2.0rc1
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
This package is auto-updated.
Last update: 2021-04-08 15:42:45 UTC
README
laminas-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/laminas/laminas-eventmanager/issues
- Documentation is at https://docs.laminas.dev/laminas-eventmanager/
For migration from version 2 to version 3, please read the migration documentation.
Benchmarks
We provide scripts for benchmarking laminas-eventmanager using the
PHPBench framework; these can be
found in the benchmarks/
directory.
To execute the benchmarks you can run the following command:
$ vendor/bin/phpbench run --report=aggregate