Download the PHP package webware/webware-event without Composer

On this page you can find all versions of the php package webware/webware-event. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webware-event

webware/webware-event

PHP Version

PSR-14 event system for the Mezzio framework — declarative listener wiring, delegator-based dispatcher injection, and PSR-15 middleware integration.

Installation

Quick Start

1. Register the config provider

Merge Webware\Event\ConfigProvider into your application config (standard Laminas/Mezzio pattern).

2. Register listeners in app config

3. Dispatch events from your services

To inject the dispatcher, wire the EventDispatcherAwareDelegator for each service that implements EventDispatcherAwareInterface:

4. Access the dispatcher in HTTP handlers

The EventDispatcherMiddleware attaches the dispatcher as a request attribute. You must register it in your middleware pipeline to make the dispatcher available to all downstream Middleware/handlers.

Configuration

ConfigProvider keys

Key Type Description
dependencies array Container aliases & factories for the dispatcher, aggregate, and middleware.
listeners array<class-string, array> Event class → listener specs. Merged with app config.
listener_providers array<class-string> Additional ListenerProviderInterface FQCNs to attach to the aggregate.

Listener spec formats

Format Example Behavior
Class-string SendEmail::class Lazy-resolved from container via LazyListener
Array with priority ['listener' => X::class, 'priority' => 100] Resolved via PrioritizedListenerProvider
Callable fn(Event $e) => ... Attached directly

Allows an object to carry an event instance. Intended for listeners that need access to the event they're processing.

Middleware

EventDispatcherMiddleware (PSR-15) injects the event dispatcher into the request as an attribute keyed by EventDispatcherInterface::class. Register it in your middleware pipeline to make the dispatcher available to all downstream handlers.

Architecture

Key classes

Class Namespace Role
Event Webware\Event Concrete event with name, target, params, and propagation control
ConfigProvider Webware\Event Dependency wiring and default config
Configuration Webware\Event\Container Typed, validated config extraction from the container
ListenerProviderAggregateFactory Webware\Event\Container Builds the listener aggregate from config
EventDispatcherAwareDelegator Webware\Event\Container Injects the dispatcher into aware services
EventDispatcherMiddleware Webware\Event\Middleware PSR-15 middleware for request-scoped dispatch
EventAwareInterface / EventAwareTrait Webware\Event Pattern for event-carrying objects
EventDispatcherAwareInterface / EventDispatcherAwareTrait Webware\Event Pattern for event-dispatching services

Development

License

BSD-3-Clause


All versions of webware-event with dependencies

PHP Build Version
Package Version
Requires php Version ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
phly/phly-event-dispatcher Version ^1.5.0
webmozart/assert Version ^1.11.0 || ^2.0.0
webware/webware-core Version ^0.1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webware/webware-event contains the following files

Loading the files please wait ...