nopoco / laminas-eventmanager
Trigger and listen to events within a PHP application
Requires
- php: ~8.0.0 || ~8.1.0 || ~8.2.0
Requires (Dev)
- laminas/laminas-coding-standard: ~2.5.0
- laminas/laminas-stdlib: ^3.15
- phpbench/phpbench: ^1.2.7
- phpunit/phpunit: ^9.5.26
- psalm/plugin-phpunit: ^0.18.0
- psr/container: ^1.1.2 || ^2.0.2
- vimeo/psalm: ^5.0.0
Suggests
- laminas/laminas-stdlib: ^2.7.3 || ^3.0, to use the FilterChain feature
- psr/container: ^1.1.2 || ^2.0.2, to use the lazy listeners feature
Conflicts
This package is auto-updated.
Last update: 2024-10-01 00:15:02 UTC
README
Removed political appeal incompatible with free software here. The original repository is at this link.
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