Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 18, 2024 via composer

sabre/event 6.0.0

sabre/event is a library for lightweight event-based programming
Package summary
Share
0
issues
1
license
1
BSD-3-Clause
Package created
28 Jun 2013
Version published
29 Aug 2022
Maintainers
2
Total deps
1
Direct deps
0
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
sabre/event@6.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of sabre/event 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does sabre/event do?

Sabre/event is a lightweight library dedicated to event-based programming in PHP. It comes with features such as an EventEmitter, Promises, an event loop, and Co-routines to bring flexibility and performance benefits in handling different programming events.

How do you use sabre/event?

To start using sabre/event in your programs, you'll need to have composer installed. Once you've sorted that, you can simply run composer require sabre/event "^5.0" in your terminal. This will fetch and install the library into your PHP project. Please note, the package requires PHP version 7.1.

Here's a simple example of how you can use the sabre/event:

// Require the composor autoload for sabre/event
require 'vendor/autoload.php';

// Instantiate event emitter
$eventEmitter = new \Sabre\Event\EventEmitter();

// Set up a listener for 'foo' event
$eventEmitter->on('foo', function () {
    echo "foo event got triggered!";
});

// Trigger the 'foo' event
$eventEmitter->emit('foo');

In this example, we setup a very basic listener for an event named 'foo'. Whenever 'foo' event is emitted ($eventEmitter->emit('foo')), the listener we setup will execute and print the message "foo event got triggered!".

Where are the sabre/event docs?

Complete and detailed documentation of sabre/event can be found at: https://sabre.io/event/. The documentation explains all the event-based concepts and how to use the library efficiently. If you still have questions or issues, don't hesitate to open a ticket on GitHub at https://github.com/fruux/sabre-event/issues/.