PHPackages                             bazo/wamp-client - 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. bazo/wamp-client

ActiveLibrary

bazo/wamp-client
================

WAMP client in PHP

1160.5k↓43.5%7[1 issues](https://github.com/bazo/wamp-client/issues)[1 PRs](https://github.com/bazo/wamp-client/pulls)PHP

Since Oct 16Pushed 10y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

WAMP Client
===========

[](#wamp-client)

About
-----

[](#about)

This library has been tested with Ratchet WAMP server. It can only send messages to the server, listening for replies is not implemented. Supported functions:

- prefix
- call
- publish
- event

Based on

Usage
-----

[](#usage)

```
$client = new \WAMP\WAMPClient('http://localhost:8080');
$sessionId = $client->connect();

//establish a prefix on server
$client->prefix("calc", "http://example.com/simple/calc#");

//you can send arbitrary number of arguments
$client->call('calc', 12,14,15);

$data = [0, 1, 2];

//or array
$client->call('calc', $data);

publish an event

//$payload can be scalar or array
$exclude = [$sessionId]; //no sense in sending the payload to ourselves
$eligible = [...] //list of other clients ids that are eligible to receive this payload
$client->publish('topic', $payload, $exclude, $eligible);

$client->event('topic', $payload);
$client->disconnect();
```

License
-------

[](#license)

This software is distributed under MIT License. See LICENSE for more info.

Author
------

[](#author)

Martin Bažík

Thanks
------

[](#thanks)

Thanks to Elephant.IO authors for the websocket communication part.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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://www.gravatar.com/avatar/8e88095e75ebabe4a1ace0bf87ec2813e6182f2ee80ac025f8e5bc5e00917b4f?d=identicon)[bazo](/maintainers/bazo)

---

Top Contributors

[![guillaumepotier](https://avatars.githubusercontent.com/u/496234?v=4)](https://github.com/guillaumepotier "guillaumepotier (17 commits)")[![bazo](https://avatars.githubusercontent.com/u/181588?v=4)](https://github.com/bazo "bazo (10 commits)")[![loertel](https://avatars.githubusercontent.com/u/4450512?v=4)](https://github.com/loertel "loertel (3 commits)")[![mieszko4](https://avatars.githubusercontent.com/u/3238370?v=4)](https://github.com/mieszko4 "mieszko4 (2 commits)")[![blub0hr](https://avatars.githubusercontent.com/u/4029791?v=4)](https://github.com/blub0hr "blub0hr (1 commits)")[![gmajoulet](https://avatars.githubusercontent.com/u/1492044?v=4)](https://github.com/gmajoulet "gmajoulet (1 commits)")

### Embed Badge

![Health badge](/badges/bazo-wamp-client/health.svg)

```
[![Health](https://phpackages.com/badges/bazo-wamp-client/health.svg)](https://phpackages.com/packages/bazo-wamp-client)
```

PHPackages © 2026

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