PHPackages                             ejtj3/nats-monitoring - 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. ejtj3/nats-monitoring

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

ejtj3/nats-monitoring
=====================

Nats monitoring api wrapper

v0.1.0(11mo ago)13.5k↓16.7%PHPPHP ^8.4CI passing

Since Dec 18Pushed 2mo agoCompare

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

READMEChangelog (4)Dependencies (10)Versions (10)Used By (0)

Nats monitoring
===============

[](#nats-monitoring)

 [![](https://camo.githubusercontent.com/2dc53b31e4a6ec6a1eb34447edc86c690c249ab91f46810be0b961588016c965/68747470733a2f2f7777772e676974626f6f6b2e636f6d2f63646e2d6367692f696d6167652f77696474683d33362c6470723d322c6865696768743d33362c6669743d636f6e7461696e2c666f726d61743d6175746f2f68747470732533412532462532463638333839393338382d66696c65732e676974626f6f6b2e696f2532467e25324666696c6573253246763025324662253246676974626f6f6b2d6c65676163792d66696c65732532466f25324673706163657325323532462d4c714d59635a4d4c31627358724e33457a673025323532466176617461722e706e6725334667656e65726174696f6e25334431353731383438303138393032363237253236616c742533446d65646961)](https://camo.githubusercontent.com/2dc53b31e4a6ec6a1eb34447edc86c690c249ab91f46810be0b961588016c965/68747470733a2f2f7777772e676974626f6f6b2e636f6d2f63646e2d6367692f696d6167652f77696474683d33362c6470723d322c6865696768743d33362c6669743d636f6e7461696e2c666f726d61743d6175746f2f68747470732533412532462532463638333839393338382d66696c65732e676974626f6f6b2e696f2532467e25324666696c6573253246763025324662253246676974626f6f6b2d6c65676163792d66696c65732532466f25324673706163657325323532462d4c714d59635a4d4c31627358724e33457a673025323532466176617461722e706e6725334667656e65726174696f6e25334431353731383438303138393032363237253236616c742533446d65646961)

 [![Latest Stable Version](https://camo.githubusercontent.com/401358a978a533d9bb3d89a92e2fcdc59ce108bfb0fd9638793c58a2d8f465fa/687474703a2f2f706f7365722e707567782e6f72672f656a746a332f6e6174732d6d6f6e69746f72696e672f76)](https://camo.githubusercontent.com/401358a978a533d9bb3d89a92e2fcdc59ce108bfb0fd9638793c58a2d8f465fa/687474703a2f2f706f7365722e707567782e6f72672f656a746a332f6e6174732d6d6f6e69746f72696e672f76) [![Total Downloads](https://camo.githubusercontent.com/193b9a4c6b3c660575367e4a8b8ffcbb0776a82380008555e15e23f2bcca571a/687474703a2f2f706f7365722e707567782e6f72672f656a746a332f6e6174732d6d6f6e69746f72696e672f646f776e6c6f616473)](https://camo.githubusercontent.com/193b9a4c6b3c660575367e4a8b8ffcbb0776a82380008555e15e23f2bcca571a/687474703a2f2f706f7365722e707567782e6f72672f656a746a332f6e6174732d6d6f6e69746f72696e672f646f776e6c6f616473) [![License](https://camo.githubusercontent.com/052161208e03de7ed81ee7245bdf55b65db479ac6f51c95510d77997dc61884e/687474703a2f2f706f7365722e707567782e6f72672f656a746a332f6e6174732d6d6f6e69746f72696e672f6c6963656e7365)](https://camo.githubusercontent.com/052161208e03de7ed81ee7245bdf55b65db479ac6f51c95510d77997dc61884e/687474703a2f2f706f7365722e707567782e6f72672f656a746a332f6e6174732d6d6f6e69746f72696e672f6c6963656e7365)

Nats monitoring
===============

[](#nats-monitoring-1)

```
$ composer require ejtj3/nats-monitoring jms/serializer
```

```
use EJTJ3\NatsMonitoring\Jms\Serializer\Handler\NatsDateImmutableHandler;
use EJTJ3\NatsMonitoring\Jms\Serializer\Handler\NatsDateIntervalHandler;
use EJTJ3\NatsMonitoring\Model\ConnectionRequest;
use EJTJ3\NatsMonitoring\NatsMonitoringClient;
use JMS\Serializer\Handler\HandlerRegistry;
use JMS\Serializer\SerializerBuilder;
use Symfony\Component\HttpClient\Psr18Client;

// build serializer
$serializerBuilder = new SerializerBuilder();
$serializerBuilder->configureHandlers(static function (HandlerRegistry $registry): void {
    $registry->registerSubscribingHandler(new NatsDateIntervalHandler());
    $registry->registerSubscribingHandler(new NatsDateImmutableHandler());
});
$serializer = $serializerBuilder->build();

$client = new NatsMonitoringClient(
    serializer: $serializer,
    client: new Psr18Client(),
);

$requestOptions = new ConnectionRequest();
$requestOptions->setAuth(true);

$connections = $client->getConnections('https://demo.nats.io:8222', $requestOptions);
```

Available methods
-----------------

[](#available-methods)

NameRouteMethodGeneral/varz`$client->getGeneralSettings('https://demo.nats.io:8222')`Jetstream/jsz`$client->getJetstream('https://demo.nats.io:8222')`Connections/connz`$client->getConnections('https://demo.nats.io:8222')`Accounts/accountz`$client->getAccounts('https://demo.nats.io:8222')`Account stats/accstatz`$client->getAccountStats('https://demo.nats.io:8222')`Subscriptions/subsz`$client->getSubscriptions('https://demo.nats.io:8222')`Routes/routez`$client->getRoutez('https://demo.nats.io:8222')`Leafnodes/leafz`$client->getLeafnodes('https://demo.nats.io:8222')`Gateways/gatewayzNot yet implementedHealthProbe/leafz`$client->getHealth('https://demo.nats.io:8222')`

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance69

Regular maintenance activity

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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 ~177 days

Total

4

Last Release

345d ago

PHP version history (2 changes)v0.0.1-alphaPHP ^8.1

v0.1.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31619091?v=4)[Evert Jan Hakvoort](/maintainers/EJTJ3)[@EJTJ3](https://github.com/EJTJ3)

---

Top Contributors

[![EJTJ3](https://avatars.githubusercontent.com/u/31619091?v=4)](https://github.com/EJTJ3 "EJTJ3 (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ejtj3-nats-monitoring/health.svg)

```
[![Health](https://phpackages.com/badges/ejtj3-nats-monitoring/health.svg)](https://phpackages.com/packages/ejtj3-nats-monitoring)
```

###  Alternatives

[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

81733.7k](/packages/flow-php-flow)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)[anthropic-ai/sdk

Anthropic PHP SDK

129134.7k5](/packages/anthropic-ai-sdk)

PHPackages © 2026

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