Download the PHP package hyperlab/laravel-pubsub-rabbitmq without Composer

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

Laravel Pub/Sub RabbitMQ

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides an opinionated approach to implement Pub/Sub messaging in Laravel using RabbitMQ.

Installation

Install the package via composer:

Publish the config/pubsub.php config file:

Publish the routes/subscriptions.php routes file:

Add the following snippet to your application's config/queue.php file.

More details about the configuration options for the queue connection can be found in the readme of the vyuldashev/laravel-queue-rabbitmq package.

Configuration

You can configure the package to suit your needs through the config/pubsub.php config file. By default, the file looks like this:

Subscribers

In order for your application to receive messages from RabbitMQ, it needs to subscribe to one or more message types.

By default, these subscriptions can be defined in the routes/subscriptions.php file. However, the path to this file can be changed in the configuration file.

The contents of the subscriptions file should look like this:

The file returns an associative array in which:

The handler of a subscription can be defined in two ways:

  1. By referencing a class

    In this case, the package looks for a public method in the class that accepts a Hyperlab\LaravelPubSubRabbitMQ\Subscriber\Message as argument. This method can be called anything, as shown here:

  2. By referencing a class and method

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-pubsub-rabbitmq with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
adbario/php-dot-notation Version ^2.2
illuminate/contracts Version ^8.0
spatie/laravel-package-tools Version ^1.4.3
vladimir-yuldashev/laravel-queue-rabbitmq Version ^11.2
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 hyperlab/laravel-pubsub-rabbitmq contains the following files

Loading the files please wait ....