PHPackages                             rabbitevents/publisher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. rabbitevents/publisher

ActiveLibrary[Queues &amp; Workers](/categories/queues)

rabbitevents/publisher
======================

The Publisher component of the RabbitEvents package.

v9.0.0(3mo ago)211.1k1MITPHPPHP ^8.2

Since Feb 23Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/rabbitevents/publisher)[ Packagist](https://packagist.org/packages/rabbitevents/publisher)[ RSS](/packages/rabbitevents-publisher/feed)WikiDiscussions 9.x Synced 1mo ago

READMEChangelogDependencies (1)Versions (30)Used By (0)

RabbitEvents Publisher
======================

[](#rabbitevents-publisher)

The RabbitEvents Publisher component provides an API for publishing events across the application structure. More information is available in the [Nuwber's RabbitEvents documentation](https://github.com/nuwber/rabbitevents).

The RabbitEvents Publisher is the part that informs all other microservices that a payment has succeeded.

Table of Contents
-----------------

[](#table-of-contents)

1. [Installation via Composer](#installation)
2. [Configuration](#configuration)
3. [Publishing](#how-to-publish)
4. [Testing](#testing)

Installation via Composer
-----------------------------------------------------------------

[](#installation-via-composer)

RabbitEvents Publisher can be installed via the Composer package manager:

```
composer require rabbitevents/publisher
```

After installing Publisher, you can execute the `rabbitevents:install` Artisan command, which will install the RabbitEvents configuration file into your application:

```
php artisan rabbitevents:install
```

Configuration
-------------------------------------------------------

[](#configuration-)

Details about the configuration are described in the library [documentation](https://github.com/nuwber/rabbitevents#configuration).

Publishing
----------------------------------------------------

[](#publishing)

### Using an Event class

[](#using-an-event-class)

Here is an example event class:

```
