PHPackages                             funeralzone/msg-pack-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. funeralzone/msg-pack-php

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

funeralzone/msg-pack-php
========================

This package tries to leverage the power of Message Pack and msgpack.php. Mainly this uses https://github.com/msgpack-rpc/msgpack-rpc-php while updating the underlying code &amp; upgrading to the above mentioned msgpack.php package.

016PHP

Since Aug 14Pushed 7y ago2 watchersCompare

[ Source](https://github.com/funeralzone/MsgPackPhp)[ Packagist](https://packagist.org/packages/funeralzone/msg-pack-php)[ RSS](/packages/funeralzone-msg-pack-php/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

MsgPackPhp
==========

[](#msgpackphp)

This package tries to leverage the power of [Message Pack](https://msgpack.org/index.html) and [msgpack.php](https://github.com/rybakit/msgpack.php)

Mainly this uses  while updating the underlying code &amp; upgrading to the above mentioned msgpack.php package.

### There are 3 possible use cases for this repository due to it's server &amp; client perspective

[](#there-are-3-possible-use-cases-for-this-repository-due-to-its-server--client-perspective)

1. Client (my main use case)

```
$client = new Client('localhost', '1985');

$messages =  $client->call("SyncJob", $job, $payload);

echo array_pop($messages);
```

aside from the obvious `host` and `port` arguments for the `Client` class, let's see the arguments for the call function:

- first argument is a string naming the function to be called on the server side (see `tests/server.php`)
- the `call` method is a variadic function, hence the following arguments are concatenated to an array on the server

2. Server (not thoroughly tested)

```
try {
    $server = new Server('1985', new App());
    echo 'Server is listening on port 1985...';
    $server->recv();
} catch (Exception $e) {
    echo $e->getMessage();
}
```

see `tests/server.php` for full example

3. Client and Server

this would be a good use case if you use multiple services or you need back and forth communication

\*if you need this between the same 2 services maybe best to take into account switching to http/2 where

```
  $backChannel = new BackChannel();

  $client = new Client('localhost', '1986', $backChannel);
  $messages =  $client->call("SyncJob", $job, $payload);
  echo array_pop($messages);

  try {
      $server = new Server('1985', new App(), $backChannel);
      echo 'Server is listening on port 1985...';
      $server->recv();
  } catch (Exception $e) {
      echo $e->getMessage();
  }
```

yes, in this case as it was the case for the original package, it makes sense to use the BackChannel combined

### Other options

[](#other-options)

The package provides necessary interfaces &amp; Traits in order to have your own Server or Client enhancements without the need to modify the base classes whom one can mainly use as references rather than implementations as it makes only for the most basic use case.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296186?v=4)[Chris Harrison](/maintainers/chrisharrison)[@chrisharrison](https://github.com/chrisharrison)

![](https://www.gravatar.com/avatar/1ddc0d4508a7128d0e456ba94c189a54f68bfb2fc6b9dea51401b0089abe3ebb?d=identicon)[decebal](/maintainers/decebal)

---

Top Contributors

[![decebal](https://avatars.githubusercontent.com/u/352761?v=4)](https://github.com/decebal "decebal (13 commits)")

---

Tags

msgpackphp

### Embed Badge

![Health badge](/badges/funeralzone-msg-pack-php/health.svg)

```
[![Health](https://phpackages.com/badges/funeralzone-msg-pack-php/health.svg)](https://phpackages.com/packages/funeralzone-msg-pack-php)
```

###  Alternatives

[nexucis/es-index-helper

Elasticsearch Index Helper for php, which allows you to manage your indices without any downtime

1519.5k](/packages/nexucis-es-index-helper)

PHPackages © 2026

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