PHPackages                             quinluong/miczone-wrapper-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. quinluong/miczone-wrapper-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

quinluong/miczone-wrapper-php
=============================

Miczone wrapper for php

1.0.2(4y ago)0292PHPPHP &gt;=7.0

Since Jan 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/quinluong/miczone-wrapper-php)[ Packagist](https://packagist.org/packages/quinluong/miczone-wrapper-php)[ RSS](/packages/quinluong-miczone-wrapper-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (41)Used By (0)

miczone-wrapper-php
===================

[](#miczone-wrapper-php)

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

[](#installation)

This library can be installed via Composer:

```
composer require quinluong/miczone-wrapper-php
```

Test
----

[](#test)

```
./vendor/phpunit/phpunit/phpunit --verbose tests
./vendor/phpunit/phpunit/phpunit --verbose tests/Miczone/Wrapper/MiczoneCatalogClient/GatewayTest.php --filter testPing
./vendor/phpunit/phpunit/phpunit --repeat 10 --verbose tests
```

EventBus
--------

[](#eventbus)

### Prerequisite libraries

[](#prerequisite-libraries)

In order to use this library, must be install by following

- Step 1: Install librdkafka
- Step 2: Install rdkafka

    Please choose version rdkafka-3.1.3 for high stability

### Usage

[](#usage)

#### Notifier

[](#notifier)

```
use Miczone\Wrapper\MiczoneEventBusClient\Notifier;
use Miczone\Thrift\EventBus\NotifyMessageResponse;

$client = new Notifier([
    'hosts' => '127.0.0.1:1234',
    'clientId' => 'my-service',
    'auth' => 'user:pass',
    'topics' => 'topicA,topicB',
    'numberOfRetries' => 3 // optional
]);

// Async
$client->ow_notifyString([
    'topic' => 'topicA',
    'key' => 'my-key', // to keep packages in order if they have the same key
    'data' => '{}' // data type can be Boolean / Integer / Double / String
], function () {
    // Success callback
}, function ($ex) {
    // Error callback
});

// Sync, type of $response is NotifyMessageResponse
$response = $client->notifyString([
    'topic' => 'topicB',
    'key' => 'my-key',
    'data' => '{}',
]);
```

#### Watcher

[](#watcher)

```
use Miczone\Wrapper\MiczoneEventBusClient\Watcher;
use Miczone\Wrapper\MiczoneEventBusClient\WatcherHandler\StringWatcherHandlerInterface;

$client = new Watcher([
    'hosts' => '127.0.0.1:1234',
    'clientId' => 'my-service',
    'groupId' => 'my-group',
    'topics' => 'topicA,topicB'
]);

/**
 * Handler interface can be:
 * - BooleanWatcherHandlerInterface
 * - IntegerWatcherHandlerInterface
 * - DoubleWatcherHandlerInterface
 * - StringWatcherHandlerInterface
 */
$client->setHandler(new class implements StringWatcherHandlerInterface {
    public function onMessage(string $topic, int $partition, int $offset, int $timestamp, string $key = null, string $data = null) {
        // Do your stuff
    }

    public function onError($code, string $message, \Exception $exception = null) {
        // Catch error
    }
});

$client->start();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~5 days

Total

40

Last Release

1736d ago

Major Versions

0.0.37 → 1.0.02021-08-11

PHP version history (2 changes)0.0.1PHP &gt;=7.2

0.0.5PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dbbedcee406f004f224b3f00c99e0239bf29cceed8a74918b59586af6315ea1?d=identicon)[quinluong](/maintainers/quinluong)

---

Top Contributors

[![quyluongthanh](https://avatars.githubusercontent.com/u/6750222?v=4)](https://github.com/quyluongthanh "quyluongthanh (45 commits)")[![quinluong](https://avatars.githubusercontent.com/u/15945820?v=4)](https://github.com/quinluong "quinluong (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quinluong-miczone-wrapper-php/health.svg)

```
[![Health](https://phpackages.com/badges/quinluong-miczone-wrapper-php/health.svg)](https://phpackages.com/packages/quinluong-miczone-wrapper-php)
```

###  Alternatives

[mistic100/randomcolor

Generate attractive random colors

2431.4M6](/packages/mistic100-randomcolor)[khill/php-duration

Converts between colon formatted time, human-readable time and seconds

1611.7M20](/packages/khill-php-duration)[staudenmeir/dusk-updater

Updater for Laravel Dusk ChromeDriver binaries

1242.3M1](/packages/staudenmeir-dusk-updater)[ans-group/laravel-health-check

A package for checking the health of your Laravel/Lumen applications.

167930.0k2](/packages/ans-group-laravel-health-check)[mantas-done/subtitles

Subtitle converter and generator for PHP

163837.8k2](/packages/mantas-done-subtitles)[prooph/common

Common classes used across prooph packages

852.2M27](/packages/prooph-common)

PHPackages © 2026

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