PHPackages                             voryx/wamppost - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. voryx/wamppost

ActiveLibrary[HTTP &amp; Networking](/categories/http)

voryx/wamppost
==============

HTTP to WAMP Publishing Proxy

0.2.1(7y ago)951.2k↓100%4[2 PRs](https://github.com/voryx/WampPost/pulls)MITPHP

Since Jan 20Pushed 4y ago2 watchersCompare

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

READMEChangelog (8)Dependencies (6)Versions (10)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0347c1a0841a376c4cf9377f7736c2adfbcb475b4c2ee49c1856c23fd0c9f9b1/68747470733a2f2f7472617669732d63692e6f72672f766f7279782f57616d70506f73742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/voryx/WampPost)WampPost
=================================================================================================================================================================================================================================================================================

[](#wamppost)

WampPost is a [WAMP v2](http://wamp.ws/) (Web Application Messaging Protocol) Client built with [Thruway](https://github.com/voryx/Thruway) that allows publishing events and making RPC calls to a realm via HTTP Post.

WampPost is designed to be compatible with the [crossbar HTTP pusher service](http://crossbar.io/docs/HTTP-Pusher-Service/).

There is no security on the HTTP side, so if this is going to be used, it would be best to use it only on localhost or behind some other security measure.

The WAMP side can be configured to use any security mechanism that is supported by Thruway, but any authentication and authorization will be the same for all HTTP events.

### Quick Start with Composer

[](#quick-start-with-composer)

Create a directory for the test project

```
  $ mkdir wamppost

```

Switch to the new directory

```
  $ cd wamppost

```

Download Composer [more info](https://getcomposer.org/doc/00-intro.md#downloading-the-composer-executable)

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

```

Download WampPost and dependencies

```
  $ php composer.phar require "voryx/wamppost" "thruway/pawl-transport"

```

If you need a WAMP router to test with, then start the sample with:

```
  $ php vendor/voryx/thruway/Examples/SimpleWsServer.php

```

Thruway is now running on 127.0.0.1 port 9090.

### PHP WampPost Client Usage

[](#php-wamppost-client-usage)

```
