Download the PHP package romeoz/rock-events without Composer
On this page you can find all versions of the php package romeoz/rock-events. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download romeoz/rock-events
More information about romeoz/rock-events
Files in romeoz/rock-events
Download romeoz/rock-events
More information about romeoz/rock-events
Files in romeoz/rock-events
Vendor romeoz
Package rock-events
Short Description A simple implementation of Pub/Sub for PHP
License MIT
Package rock-events
Short Description A simple implementation of Pub/Sub for PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package rock-events
Implementation of Publisher-Subscriber for PHP
Features
- Handler can be a closure, instance, and static class
- Standalone module/component for Rock Framework
Installation
From the Command Line:
In your composer.json:
Quick Start
Documentation
on(string|object $class, string $name, callable $handler)
To subscribe to the event.
Set a handler can be as follows:
Options:
function (Event $event) { ... }
[new Foo, 'method']
['Foo', 'static_method']
trigger(string|object $class, string $name, Event $event = null)
To publish event.
off(string|object $class, string $name, callable $handler = null)
Detach event.
Requirements
- PHP 5.4+
License
The Rock Events is open-sourced software licensed under the MIT license.
All versions of rock-events with dependencies
PHP Build Version
Package Version
The package romeoz/rock-events contains the following files
Loading the files please wait ....