Download the PHP package monkeyscloud/monkeyslegion-events without Composer

On this page you can find all versions of the php package monkeyscloud/monkeyslegion-events. 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 monkeyslegion-events

MonkeysLegion Events v2

PHP PSR-14

High-performance PSR-14 event dispatcher with typed interceptors, attribute-based listeners, event sourcing, circuit breakers, and dispatch metrics for the MonkeysLegion framework.

Installation

Features

Feature Description
PSR-14 Compliant Full EventDispatcherInterface + StoppableEventInterface
5 PHP Attributes #[Listener], #[Subscriber], #[ListenWhen], #[BeforeEvent], #[AfterEvent]
Priority + FIFO Higher priority runs first; equal priority preserves registration order
One-Shot Listeners once() — auto-removed after first invocation
Wildcard Listeners Pattern matching: User* catches UserCreated, UserDeleted, etc.
Event Subscribers Multi-event handler classes (Laravel + Symfony parity)
Stoppable Events $event->stopPropagation() halts the listener chain
Interceptor Pipeline NOVEL — Before/After hooks (AOP-style)
Conditional Listeners NOVEL — #[ListenWhen] with guard method
Circuit Breaker NOVEL — Auto-disable failing listeners after N failures
Event Store/Replay NOVEL — Record & replay events for testing/debugging
Dispatch Metrics NOVEL — Per-event timing and count tracking
Correlation IDs NOVEL — Hex-based event tracing across request scope
Safe Mode Catch listener exceptions instead of crashing
Batch Dispatch Dispatch multiple events in sequence
ShouldQueue Marker Flag listeners for async/queue processing
ShouldBroadcast Flag events for WebSocket/SSE broadcasting
PHP 8.4 Native Property hooks, backed enums, asymmetric visibility

Quick Start

Attribute-Based Listeners

Conditional Listeners (Novel)

Interceptor Pipeline (Novel)

AOP-style before/after hooks that wrap the regular listener chain:

Global Interceptors

Event Subscribers

Wildcard Listeners

Stoppable Events

Event Store & Replay (Novel)

Dispatch Result & Metrics

Circuit Breaker (Novel)

Listeners that fail repeatedly are auto-disabled:

Safe Mode

Async/Queue Markers

Correlation Tracking

PHP 8.4 Features Used

Feature Where
Property Hooks Event::$isPropagationStopped, Event::$name, EventMetrics, ListenerProvider::$count, EventStore::$size, EventDispatcher::$totalDispatches
Asymmetric Visibility Event::$timestamp, Event::$correlationId, ListenerDescriptor
Backed Enum EventType (Before/On/After)
readonly classes DispatchResult, all Attributes
match expressions EventType::label()
new in initializers Event::$timestamp, ListenerDescriptor::$registeredAt
PHP 8 Attributes 5 attributes across Attribute/ namespace

Changelog

2.0.0 — Complete Rebuild

BREAKING CHANGE: Full API redesign from v1.

Requirements

Optional

License

MIT


All versions of monkeyslegion-events with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
psr/event-dispatcher Version ^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 monkeyscloud/monkeyslegion-events contains the following files

Loading the files please wait ...