Download the PHP package behzadsh/rabbitmq-broadcaster without Composer

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

RabbitMQ Event Broadcaster for Laravel

The main focus of Laravel's event broadcasting module is to enable communication with the client-side of the application. However, it can also be useful for asynchronous communication and message passing between services, especially in a microservices architecture.

This package provides an easy way to broadcast Laravel events to a RabbitMQ server, enabling you to send messages asynchronously and facilitating communication between services in a microservices architecture.

Installation

To install the package, run the following command:

After installing the package, append the broadcaster config as shown in the snippet below to your broadcasting.php config file:

Then, append the package service provider at the end of the providers list in your app.php config file:

Usage

To use the RabbitMQ event broadcaster, your desired event class must implement the Illuminate\Contracts\Broadcasting\ShouldBroadcast interface, which requires you to implement the broadcastOn method. The broadcastOn method should return a channel or an array of channels that the event should broadcast on.

Since this package is primarily intended for communicating between internal backend services, channels are not public, and access to the channels from client-side applications is not allowed. Therefore, it's recommended that you avoid using the PrivateChannel, PresenceChannel, and EncryptedPrivateChannel and use a simple Channel instead.

It is recommended to implement the broadcastWith method if you construct your event with an Eloquent Model. The broadcastWith method should return an array that can be serialized into JSON.


All versions of rabbitmq-broadcaster with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
php-amqplib/php-amqplib Version ~3.5
illuminate/support Version ^9.0|^10.0
illuminate/contracts Version ^9.0|^10.0
illuminate/broadcasting Version ^9.0|^10.0
illuminate/http Version ^9.0|^10.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 behzadsh/rabbitmq-broadcaster contains the following files

Loading the files please wait ....