Download the PHP package xblabs/ripple without Composer

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

Ripple

Ripple is a small, fast PHP event dispatcher. It lets you build event-driven systems with a simple interface for registering listeners and dispatching events, with priorities, propagation control, wildcard subscriptions, one-time listeners, subscriber objects, and PSR-14 interoperability.

An event dispatcher decouples the parts of an application: components communicate through events instead of direct calls, which makes the code more maintainable and flexible.

Features

Requirements

Installation

Usage

Dispatching events

Event names are opaque strings. No character is special — user.login, user:login and user/login are all just names. (In 1.x a : was reserved for the aggregate system; that is no longer the case. See UPGRADE.md.)

Listeners

A listener is any callable. By default it receives the Event object.

If a closure declares more than one parameter and its first parameter is not named e or event, Ripple spreads the event's params as positional arguments instead of passing the Event. You can force this with the fourth argument to dispatch():

Priorities

Default priority is 0. Higher priorities fire first; listeners with equal priority fire last-in-first-out.

Stopping propagation

One-time listeners

once() fires a listener at most once, then removes it. (A once listener that is never reached — e.g. propagation was stopped before it — is retained for a future dispatch.)

Wildcard listeners

Wildcard patterns use * to match any run of characters, including your separator of choice.

Exact and wildcard listeners compose in a single dispatch and are ordered together by priority (on a tie, exact listeners fire before wildcard ones).

Subscriber objects

A subscriber declares all the events it handles in one place. Keys may contain * (registered as a wildcard).

Managing listeners

Custom event class

Static / singleton usage

DispatcherStatic proxies a single shared dispatcher. It can be reset or injected, which is useful in tests.

PSR-14 interoperability

Event implements Psr\EventDispatcher\StoppableEventInterface. The Psr14\Psr14Dispatcher and Psr14\ListenerProvider adapters let Ripple act as a PSR-14 EventDispatcherInterface, reusing the same listener storage and priority ordering.

Note the difference between the two APIs: native Ripple dispatches event names and collects listener return values; PSR-14 dispatches an object and returns that same object.

Testing

License

MIT License. See LICENSE for details.


All versions of ripple with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
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 xblabs/ripple contains the following files

Loading the files please wait ...