PHPackages                             stepotronic/logjamdispatcher - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. stepotronic/logjamdispatcher

AbandonedArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

stepotronic/logjamdispatcher
============================

Basic client to dispatch log messages to logjam using ZeroMQ.

1.3.0(9y ago)31.9k1PHP

Since Sep 9Pushed 9y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

Logjam Dispatcher
=================

[](#logjam-dispatcher)

Basic client to dispatch log messages to logjam using ZeroMQ.

Dispatch Message
----------------

[](#dispatch-message)

```
use LogjamDispatcher\Dispatcher\ZmqDispatcher;
use LogjamDispatcher\Logjam\Message;

$dispatcher = new ZmqDispatcher(array('tcp://my.broker'), 'myapp', 'dev');

$message = new Message();
// fill message object

$message->setMethod('GET');
//.....

$dispatcher->dispatch($message);
```

### Initialize dispatcher with custom ZMQSocket

[](#initialize-dispatcher-with-custom-zmqsocket)

```
$dispatcher = new ZmqDispatcher(array('tcp://my.broker'), 'myapp', 'dev', ZmqDispatcher::createZmqSocket());
```

### Filtered Request Informations

[](#filtered-request-informations)

```
use LogjamDispatcher\Http\FilteredRequestInformationDecorator;
use LogjamDispatcher\Http\RequestInformation;

$message = new Message();

// ....

$requestInformation = new RequestInformation();
$requestInformation->setBodyParameters(array(
    'password' => 'foo-bar123'
));

$requestInformation = new FilteredRequestInformationDecorator($requestInformation, array('password'), '*****');

print_r($requestInformation->getBodyParameters());
// outputs: Array([password] => *****)

$message->setRequestInformation($requestInformation);

//....
```

### Fullyfilled Message Example

[](#fullyfilled-message-example)

```
use LogjamDispatcher\Logjam\Message;
use LogjamDispatcher\Dispatcher\Expression;

$message = new Message();

$requestInformation = new RequestInformation();
$requestInformation
    ->setMethod('GET')
    ->setHeaders(array('Accept' => 'Nothing', 'Feels' => 'BadMan'))
    ->setBodyParameters(array('action' => 'submit'))
    ->setQueryParameters(array('page' => '15', 'offset' => '213123'))
    ->setUrl('my.app.page/products');

$message
    ->setAction('MyApp::MyController#MyAction')
    ->setAdditionalData(array('stuff' => 'theUserDid'))
    ->setCallerAction('') //value of http request header X-Logjam-Action (if present)
    ->setCallerId('')     //value of http request header X-Logjam-Caller-Id (if present)
    ->setDbCalls(12)
    ->setDbTime(123123.123)
    ->setExceptions(array($thisStupidExceptionIGot))
    ->setHost('my.app.host')
    ->setIp('123.321.123.321')
    ->setRequestId(new RequestId())
    ->setRequestInformation($requestInformation)
    ->setRequestStartedAt($myStartTimeDateTimeObject)
    ->setRequestEndedAt($myEndTimeDateTimeObject)
    ->setResponseCode(200)
    ->setSeverity(Expression\Severity::INFO)
    ->setUserId(0);
```

### Log Exceptions

[](#log-exceptions)

```
if ($dispatcher->hasExceptions) {
    $exceptions = $dispatcher->getExceptions();
    // Do stuff with them
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 54.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 ~54 days

Recently: every ~40 days

Total

12

Last Release

3303d ago

Major Versions

0.3.1 → 1.0.02016-09-22

### Community

Maintainers

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

---

Top Contributors

[![muehre](https://avatars.githubusercontent.com/u/9722525?v=4)](https://github.com/muehre "muehre (17 commits)")[![stepotronic](https://avatars.githubusercontent.com/u/683595?v=4)](https://github.com/stepotronic "stepotronic (9 commits)")[![JLueke](https://avatars.githubusercontent.com/u/17501454?v=4)](https://github.com/JLueke "JLueke (3 commits)")[![moee](https://avatars.githubusercontent.com/u/422547?v=4)](https://github.com/moee "moee (1 commits)")[![xyNNN](https://avatars.githubusercontent.com/u/1929750?v=4)](https://github.com/xyNNN "xyNNN (1 commits)")

---

Tags

phpzeromqlogjam

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stepotronic-logjamdispatcher/health.svg)

```
[![Health](https://phpackages.com/badges/stepotronic-logjamdispatcher/health.svg)](https://phpackages.com/packages/stepotronic-logjamdispatcher)
```

###  Alternatives

[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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