2017 © Pedro Peláez
 

library wamp-publisher

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

image

bdk/wamp-publisher

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

  • Friday, October 6, 2017
  • by brad.kent
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

WampPublisher

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

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

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

WampPublisher is built on the websocket client textalk/websocket-php, (*4)

Installation

Download Composer (if not already installed) more info, (*5)

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

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

$ php composer.phar require bdk/wamp-publisher

Everything is now good to go., (*7)

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"));

The Versions

06/10 2017

dev-master

9999999-dev http://github.com/bkdotcom/WampPublisher

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

  Sources   Download

MIT

The Requires

 

wamp wampws

06/10 2017

v1.0

1.0.0.0 http://github.com/bkdotcom/WampPublisher

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

  Sources   Download

MIT

The Requires

 

wamp wampws