Download the PHP package mihai-valentin/laravel-rabbitmq-notification-channel without Composer

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

Laravel RabbitMQ Notification Channel

Simple Laravel RabbitMQ Notification Channel. Imagine you want to send a Laravel notification via rabbitmq. Now you can use this simple package without caring about an individual channel and connections. Just create a message and send via rabbitmq channel.

Installation

Get the package

Publish configuration

Note You can use --force option to overwrite existing files

Configuration

To start using the rabbitmq channel you have to configure it. There are two ways of configuration using config file and using environment variables.

The config file options:

Alternatively you can set all the config using your .env file:

Instantaneously Start

If you have to create a notification from scratch, then just run an artisan command:

Then implement the toRabbitMQ method. Note that it must return a LaravelRabbitmqNotificationChannel\Message\Message implementation.

Quick Start

  1. Add the LaravelRabbitmqNotificationChannel\RabbitMQNotification interface to your notification
  2. Add rabbitmq channel to the notification's via array
  3. Implement the toRabbitMQ method respecting the LaravelRabbitmqNotificationChannel\RabbitMQNotification interface
  4. Implement the LaravelRabbitmqNotificationChannel\Message\Message interface and use the implementation in the toRabbitMQ method
  5. Notify your notifiables

Contracts

The LaravelRabbitmqNotificationChannel\RabbitMQNotification interface represents a generic contract for notifications. It declares how to get a message to send it via the channel. In other words, if you have to send a notification using the rabbitmq channel you have to implement this interface.

The LaravelRabbitmqNotificationChannel\Message\Message interface is a message abstraction. It declares the way of providing its content. Every message that has to be sent via rabbitmq channel must implement it.

The LaravelRabbitmqNotificationChannel\RabbitMQNotification\Channel interface represents the rabbitmq notification channel interface. You can use it to implement you own channel.

The LaravelRabbitmqNotificationChannel\Broker\Publisher interface represents the RabbitMQ messages publishing contract. You can use it to overwrite default publisher.

The LaravelRabbitmqNotificationChannel\Mapper\MessageMapper interface tells about "Message to AMQPMessage" mapping rules. You can also use it to overwrite the default mapper.

RabbitMQ Connection

The LaravelRabbitmqNotificationChannel\Broker\RabbitMQConnection class represents basic RabbitMQ connection abstraction. You can extend it to overwrite the message delivery scenario.

Code of Conduct

In order to ensure that the community is welcoming to all, please review and abide by the Code of Conduct.

Contributing

TBD;

License

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


All versions of laravel-rabbitmq-notification-channel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
php-amqplib/php-amqplib Version ^2.0
illuminate/contracts Version ^9.0
illuminate/support Version ^9.0
illuminate/notifications Version ^9.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 mihai-valentin/laravel-rabbitmq-notification-channel contains the following files

Loading the files please wait ....