Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laminas Eventmanager Laravel Package

laminas/laminas-eventmanager

Laminas EventManager provides a flexible event and listener system for PHP applications. Attach listeners, trigger events, manage priorities, and use shared event managers to coordinate decoupled components across your app.

View on GitHub
Deep Wiki
Context7

Lazy Listeners

Lazy listeners are a new feature in version 3.0, provided to reduce the performance overhead of fetching listeners and/or aggregates from a Dependency Injection Container until they are actually triggered.

The feature consists of three classes:

  • Laminas\EventManager\LazyListener, which provides basic capabilities for wrapping the retrieval of a listener from a container and invoking it.
  • Laminas\EventManager\LazyEventListener, which extends LazyListener but adds awareness of the event and optionally priority to use when attaching the listener. These are primarily used and created by:
  • Laminas\EventManager\LazyListenerAggregate, which can take a list of LazyEventListeners and/or their definitions, and be used as an aggregate listener for attaching the lazy listeners to an event manager.

Preparation

In order to use the lazy listeners feature, you will need to install PSR-11 Container, if you haven't already:

$ composer require psr/container
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4