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

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

noone-silent/thruway-client
===========================

Thruway WAMP client

0.6.0(1y ago)01.9k↓46.9%3[2 PRs](https://github.com/noone-silent/thruway-client/pulls)1MITPHPPHP &gt;7.2 || ^8.0 || ^8.1 || ^8.2 || ^8.4

Since May 6Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)Used By (1)

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

Thruway
=======

[](#thruway)

Thruway Client is an open source client for [Thruway](https://github.com/voryx/Thruway) and the [WAMP (Web Application Messaging Protocol)](http://wamp-proto.org/), for PHP.

Thruway uses ([reactphp](http://reactphp.org/)); an event-driven, non-blocking I/O model, 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
- Publish &amp; Subscribe
    - Subscriber Black and Whitelisting
    - Publisher Exclusion
    - Publisher Identification
- Remote Procedure Calls
    - Caller Identification
    - Progressive Call Results
    - Caller Exclusion
    - Canceling Calls

\* *Thruway specific features*

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

[](#requirements)

Thruway Client is only supported on PHP 5.6 and up.

### Quick Start with Composer

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

The below instructions actually install the Thruway Router and Client for test purposes. The client can also be installed without the router in your own project.

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

```

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)

```
