Download the PHP package thruway/client without Composer
On this page you can find all versions of the php package thruway/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package client
Thruway
Thruway Client is an open source client for Thruway and the WAMP (Web Application Messaging Protocol), for PHP.
Thruway uses (reactphp); an event-driven, non-blocking I/O model, perfect for modern real-time applications.
Supported WAMP Features
Basic Spec read more
- Publish and Subscribe
- Remote Procedure Calls
- Websocket Transport
- Internal Transport*
- JSON serialization
Advanced Spec read more
- RawSocket Transport
- Authentication
- WAMP Challenge-Response Authentication
- Custom Authentication Methods
- Publish & 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
Thruway Client is only supported on PHP 5.6 and up.
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
$ 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
Javascript Clients
You can also use AutobahnJS or any other WAMPv2 compatible client.
Here are some [examples] (https://github.com/tavendo/AutobahnJS#show-me-some-code)
Here's a plunker that will allow you to run some tests against a local router
For AngularJS on the frontend, use the Angular WAMP wrapper.
All versions of client with dependencies
voryx/thruway-common Version ^1.0
react/event-loop Version ^1.0 || ^0.5 || ^0.4.3
evenement/evenement Version ^3.0 || ^2.0
psr/log Version ^3 || ^2 || ^1
react/promise-timer Version ^1.2.1