PHPackages                             voryx/thruway - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. voryx/thruway

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

voryx/thruway
=============

Thruway WAMP router core

0.6.1(4y ago)6771.0M↓13.5%125[24 issues](https://github.com/voryx/Thruway/issues)[10 PRs](https://github.com/voryx/Thruway/pulls)17MITPHPPHP &gt;=7.1

Since Jul 5Pushed 4y ago45 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (42)Used By (17)

[![Build Status](https://camo.githubusercontent.com/35dbdb0f10b97587d6d663b98de79b03166f76774fca5a246e3c90e6a8057730/68747470733a2f2f7472617669732d63692e6f72672f766f7279782f546872757761792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/voryx/Thruway)

Thruway
=======

[](#thruway)

Thruway is an open source client and router implementation of [WAMP (Web Application Messaging Protocol)](http://wamp.ws/), for PHP. Thruway uses an event-driven, non-blocking I/O model ([reactphp](http://reactphp.org/)), perfect for modern real-time applications.

### Supported WAMP Features

[](#supported-wamp-features)

**Basic Spec** [read more](https://github.com/tavendo/WAMP/blob/master/spec/basic.md)

- Publish and Subscribe
- Remote Procedure Calls
- Websocket Transport
- Internal Transport\*
- JSON serialization

**Advanced Spec** [read more](https://github.com/tavendo/WAMP/blob/master/spec/advanced.md)

- RawSocket Transport
- Authentication
- WAMP Challenge-Response Authentication
- Custom Authentication Methods
- Authorization
- Publish &amp; Subscribe
- Subscriber Black and Whitelisting
- Publisher Exclusion
- Publisher Identification
- Subscriber Meta Events
- Event History\*
- Subscription Matching
- Prefix matching
- Remote Procedure Calls
- Caller Identification
- Progressive Call Results
- Distributed Registrations &amp; Calls\*
- Caller Exclusion
- Canceling Calls

\* *Thruway specific features*

Requirements
------------

[](#requirements)

Thruway is only supported on PHP 5.6 and up.

### Quick Start with Composer

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

Create a directory for the test project

```
  $ mkdir thruway

```

Switch to the new directory

```
  $ cd thruway

```

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

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

```

Download Thruway and dependencies

```
  $ php composer.phar require voryx/thruway

```

If you're going to also use the Thruway Client install a client transport. You'll need this to run the examples

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

```

Start the WAMP router

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

```

Thruway is now running on 127.0.0.1 port 9090

### PHP Client Example

[](#php-client-example)

```
