PHPackages                             jobcloud/messaging-lib - 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. jobcloud/messaging-lib

Abandoned → [jobcloud/php-kafka-lib](/?search=jobcloud%2Fphp-kafka-lib)ArchivedLibrary

jobcloud/messaging-lib
======================

Jobcloud php messaging library (kafka)

v5.0.0(6y ago)42.4kMITPHPPHP ^7.3

Since Sep 6Pushed 5y ago17 watchersCompare

[ Source](https://github.com/jobcloud/messaging-lib)[ Packagist](https://packagist.org/packages/jobcloud/messaging-lib)[ RSS](/packages/jobcloud-messaging-lib/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (8)Versions (32)Used By (0)

Deprecation notice
==================

[](#deprecation-notice)

This library has been deprecated in favour of [php-kafka-lib](https://github.com/jobcloud/php-kafka-lib).
It will still receive bugfixes until end of 10/2020, after that it will be marked as abandoned on packagist.
Please check [MIGRATION.md](MIGRATION.md) for the migration path.

messaging-lib
=============

[](#messaging-lib)

[![CircleCI](https://camo.githubusercontent.com/d54904e8578d6c668c7770f3065fd34b404f0dd8846a4b1f00d4cead98b0d23c/68747470733a2f2f636972636c6563692e636f6d2f67682f6a6f62636c6f75642f6d6573736167696e672d6c69622e7376673f7374796c653d737667)](https://circleci.com/gh/jobcloud/messaging-lib)[![Maintainability](https://camo.githubusercontent.com/095d5164d762f59f9f90e64a2ff3576d82c7e73aaa0683307edc1c40be5afe7c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37623031616231333730356434626532303361312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/jobcloud/messaging-lib/maintainability) [![Test Coverage](https://camo.githubusercontent.com/effe51b379a591902d099f08899ca13108f342b7d2ea929d70214479ddd37b68/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37623031616231333730356434626532303361312f746573745f636f766572616765)](https://codeclimate.com/github/jobcloud/messaging-lib/test_coverage) [![Latest Stable Version](https://camo.githubusercontent.com/581af9d2c208b7a01cbe97c198198b3c4b806cf63144b30da94a53abd046a700/68747470733a2f2f706f7365722e707567782e6f72672f6a6f62636c6f75642f6d6573736167696e672d6c69622f762f737461626c65)](https://packagist.org/packages/jobcloud/messaging-lib) [![Latest Unstable Version](https://camo.githubusercontent.com/492bb1478b304bbe62a2de14b2f36ea622bda39d5297300b42434294e9131cbb/68747470733a2f2f706f7365722e707567782e6f72672f6a6f62636c6f75642f6d6573736167696e672d6c69622f762f756e737461626c65)](https://packagist.org/packages/jobcloud/messaging-lib)

Description
-----------

[](#description)

Generic php messaging library Supports:

- Kafka

This is a convenience wrapper for [arnaud-lb/php-rdkafka](https://github.com/arnaud-lb/php-rdkafka)
Avro support relies on [flix-tech/avro-serde-php](https://github.com/flix-tech/avro-serde-php)
To read more about the functions used in this lib, check out the [documentation](https://arnaud.le-blanc.net/php-rdkafka/phpdoc/book.rdkafka.html) of the extension.

Requirements
------------

[](#requirements)

- php: ^7.1
- ext-rdkafka: ^4.0.0

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

[](#installation)

`composer require jobcloud/messaging-lib "~4.0"`

Usage
-----

[](#usage)

### Producer

[](#producer)

#### Kafka

[](#kafka)

##### Simple example

[](#simple-example)

```
