bdk/wamp-publisher

WAMP (Web Application Messaging Protocol) client to publish messages to router

Maintainers

👁 brad.kent

Package info

github.com/bkdotcom/WampPublisher

Homepage

pkg:composer/bdk/wamp-publisher

Statistics

Installs: 3 689

Dependents: 1

Suggesters: 2

Stars: 0

Open Issues: 0

v1.0 2017-10-06 03:19 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 92a278bbe8c001892d17d4d2d1879f3bb1ec20cb

WAMPwampws

This package is auto-updated.

Last update: 2026-06-26 03:43:01 UTC


README

Push messages to a WAMP (Web Application Messaging Protocol) router

Wamp Publisher only implements the publish portion of the WAMP protocol. It does NOT implement Remote Procedure Calls or Subscribe.

Use it in your script/application to implement logging, notifications, or perform live website updates. (see some WAMP examples on crossbar.io)

WampPublisher is built on the websocket client textalk/websocket-php

Installation

Download Composer (if not already installed) more info

$ curl -sS https://getcomposer.org/installer | php

Require WampPublisher (and it's dependency) in your project

$ php composer.phar require bdk/wamp-publisher

Everything is now good to go.

Usage Example

<?php
require __DIR__ . '/vendor/autoload.php';

use bdk\WampPublisher;

$wamp = new \bdk\WampPublisher(array(
	'url' => 'ws://127.0.0.1:9090/',
	'realm' => 'myRealm',
));
$wamp->publish('my.topic', array("I'm published to the my.topic topic"));
$sum = 1 + 1; // WAMP Publisher doesn't block you from doing other tasks
$wamp->publish('my.topic', array("Another message"));