Download the PHP package superbalist/laravel-event-pubsub without Composer

On this page you can find all versions of the php package superbalist/laravel-event-pubsub. 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 laravel-event-pubsub

laravel-event-pubsub

An event protocol and implementation over pub/sub for Laravel.

Author Build Status StyleCI Packagist Version Total Downloads

This package is a wrapper bridging php-event-pubsub into Laravel. It builds on top of the existing laravel-pubsub package adding support for publishing and subscribing to events over pub/sub.

If you aren't familiar with the laravel-pubsub package, it's worth first taking a look at their documentation.

For Laravel 4 support, use the package https://github.com/Superbalist/laravel4-event-pubsub

Installation

The package has a default configuration which uses the following environment variables.

If the PUBSUB_EVENTS_CONNECTION environment variable or pubsub_events.default config value is left blank, the default connection will be taken from the laravel-pubsub package config.

Register the service provider in app.php

Register the facade in app.php

To customize the configuration file, publish the package configuration using Artisan.

You can then edit the generated config at app/config/pubsub_events.php.

Usage

Simple Events

A SimpleEvent is an event which takes a name and optional attributes.

Topic Events

A TopicEvent is an event which takes a topic, name, version and optional attributes.

Schema Events

A SchemaEvent is an extension of the TopicEvent and takes a schema and optional attributes. The topic, name and version are derived from the schema.

The schema must be in the format (protocol)://(......)?/events/(topic)/(channel)/(version).json

Error Handling

The library supports error handlers for when event translation fails, listen expression fails and validation fails.

These are configurable as callables in the translate_fail_handler, listen_expr_fail_handler and validation_fail_handler config options.

The config contains default callables which will turn the callbacks into Laravel events.

You can register listeners in the EventServiceProvider for the following events:


All versions of laravel-event-pubsub with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
superbalist/php-event-pubsub Version ^4.0
superbalist/laravel-pubsub Version ^2.0|^3.0
illuminate/support Version ^5.3
illuminate/events Version ^5.3
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 superbalist/laravel-event-pubsub contains the following files

Loading the files please wait ....