PHPackages                             itsoneiota/event-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. itsoneiota/event-publisher

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

itsoneiota/event-publisher
==========================

PHP library to publish events

2.0.0(7y ago)021.2k[1 issues](https://github.com/itsoneiota/event-publisher-php/issues)proprietaryPHP

Since Oct 3Pushed 7y ago2 watchersCompare

[ Source](https://github.com/itsoneiota/event-publisher-php)[ Packagist](https://packagist.org/packages/itsoneiota/event-publisher)[ RSS](/packages/itsoneiota-event-publisher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

One iota Event Publisher
========================

[](#one-iota-event-publisher)

Overview
--------

[](#overview)

A PHP event publisher which is responsible for publishing user defined events within a multi service environment

Installation
------------

[](#installation)

```
composer require itsoneiota/event-publisher

```

Testing
-------

[](#testing)

```
./vendor/bin/phpunit

```

Basic Usage
-----------

[](#basic-usage)

### Builder

[](#builder)

There is a builder helper class to build your publisher.

### Build Kinesis Publisher

[](#build-kinesis-publisher)

A publisher with an AWS Kinesis transporter requires a Kinesis Client from the AWS SDK to build.

e.g.

\###Example usage - Event publishing with a Kinesis Client

\####Create Kinesis Client

```
$kinesis = new Aws\Kinesis\KinesisClient::factory(array('key'=>'KeY','secret'=>'seCrEt','region'=>'eu-west-1');

```

\####Create Publisher using builder

```
$serviceConfig = new \stdClass();
$serviceConfig->EventsPublisher = new \stdClass();
$serviceConfig->EventsPublisher->transport = new \stdClass();

$serviceConfig->EventsPublisher->enabled = true;
$serviceConfig->EventsPublisher->transport->type = 'Kinesis';
$serviceConfig->EventsPublisher->transport->stream = 'events-stream';

$publisherConfig = $publisherConfig->EventsPublisher;

$eventPublisherBuilder = EventPublisherBuilder::create()->withConfig($publisherConfig);

if($publisherConfig->transport->type == "Kinesis") {
    $eventPublisherBuilder->withKinesisTransporter($this->createKinesisClient(), $publisherConfig->transport);
}

$eventPublisher = $eventPublisherBuilder->build();

```

\####Create Event Object

```
// Constructor1 is the event origin.
// Constructor2 is the message type, this should be a constant event type within the service.
// Constructor3 is an array of fields which can be defined in any way. consider which properties is relevant to the event.

const SERVICE_NAME = "WebFrontEnd";
const EVENT_USER_LOGGED_IN = "UserLoggedIn";

$event = new \itsoneiota\eventpublisher\Event(self::SERVICE_NAME,
                                                self::EVENT_USER_LOGGED_IN,
                                                array("some message"=>"user logged in after 3 attempts","attempts remaining"=>3)
                                              );

```

\####Publish the Event

```
$eventPublisher->publish($event);

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~279 days

Total

2

Last Release

2864d ago

Major Versions

1.0.0 → 2.0.02018-07-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/c75b278201fd2896232687d5c8e7a60ca80423bff4dd894f847e57634e3431de?d=identicon)[rossmcf](/maintainers/rossmcf)

![](https://www.gravatar.com/avatar/0b55e86b0877bab2ed33164c57d3fab6396fcd1a20e3bedc45bb1f79b2cd7582?d=identicon)[osmorgan](/maintainers/osmorgan)

---

Top Contributors

[![pbartlett-oi](https://avatars.githubusercontent.com/u/17140503?v=4)](https://github.com/pbartlett-oi "pbartlett-oi (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/itsoneiota-event-publisher/health.svg)

```
[![Health](https://phpackages.com/badges/itsoneiota-event-publisher/health.svg)](https://phpackages.com/packages/itsoneiota-event-publisher)
```

###  Alternatives

[vladimir-yuldashev/laravel-queue-rabbitmq

RabbitMQ driver for Laravel Queue. Supports Laravel Horizon.

2.1k9.8M30](/packages/vladimir-yuldashev-laravel-queue-rabbitmq)[php-amqplib/rabbitmq-bundle

Integrates php-amqplib with Symfony &amp; RabbitMq. Formerly emag-tech-labs/rabbitmq-bundle, oldsound/rabbitmq-bundle.

1.3k20.1M65](/packages/php-amqplib-rabbitmq-bundle)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[shiftonelabs/laravel-sqs-fifo-queue

Adds a Laravel queue driver for Amazon SQS FIFO queues.

1556.0M3](/packages/shiftonelabs-laravel-sqs-fifo-queue)[enqueue/amqp-lib

Message Queue Amqp Transport

1078.5M61](/packages/enqueue-amqp-lib)[enqueue/sqs

Message Queue Amazon SQS Transport

376.3M14](/packages/enqueue-sqs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
