2017 © Pedro Peláez
 

library websocket

WebSocket client and server

image

textalk/websocket

WebSocket client and server

  • Thursday, October 19, 2017
  • by fiddur
  • Repository
  • 27 Watchers
  • 290 Stars
  • 547,037 Installations
  • PHP
  • 57 Dependents
  • 0 Suggesters
  • 92 Forks
  • 28 Open issues
  • 13 Versions
  • 19 % Grown

The README.md

Websocket Client and Server for PHP

Build Status Coverage Status, (*1)

Archived project

This project has been archived and is no longer maintained. No bug fix and no additional features will be added.
You won't be able to submit new issues or pull requests, and no additional features will be added, (*2)

This library has been replaced by sirn-se/websocket-php, (*3)

Websocket Client and Server for PHP

This library contains WebSocket client and server for PHP., (*4)

The client and server provides methods for reading and writing to WebSocket streams. It does not include convenience operations such as listeners and implicit error handling., (*5)

Documentation

Installing

Preferred way to install is with Composer., (*6)

composer require textalk/websocket
  • Current version support PHP versions ^7.4|^8.0.
  • For PHP 7.2 and 7.3 support use version 1.5.
  • For PHP 7.1 support use version 1.4.
  • For PHP ^5.4 and 7.0 support use version 1.3.

Client

The client can read and write on a WebSocket stream. It internally supports Upgrade handshake and implicit close and ping/pong operations., (*7)

$client = new WebSocket\Client("ws://echo.websocket.org/");
$client->text("Hello WebSocket.org!");
echo $client->receive();
$client->close();

Server

The library contains a rudimentary single stream/single thread server. It internally supports Upgrade handshake and implicit close and ping/pong operations., (*8)

Note that it does not support threading or automatic association ot continuous client requests. If you require this kind of server behavior, you need to build it on top of provided server implementation., (*9)

$server = new WebSocket\Server();
$server->accept();
$message = $server->receive();
$server->text($message);
$server->close();

License and Contributors

ISC License, (*10)

Fredrik Liljegren, Armen Baghumian Sankbarani, Ruslan Bekenev, Joshua Thijssen, Simon Lipp, Quentin Bellus, Patrick McCarren, swmcdonnell, Ignas Bernotas, Mark Herhold, Andreas Palm, Sören Jensen, pmaasz, Alexey Stavrov, Michael Slezak, Pierre Seznec, rmeisler, Nickolay V. Shmyrev, Christoph Kempen, Marc Roberts, Antonio Mora, Simon Podlipsky, etrinh., (*11)

The Versions

19/10 2017

dev-master

9999999-dev

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

09/10 2015

1.2.0

1.2.0.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

16/09 2015

dev-devHeaderEnding

dev-devHeaderEnding

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

18/08 2015

1.1.2

1.1.2.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

08/05 2015

1.1.1

1.1.1.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

08/05 2015

dev-license

dev-license

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

24/04 2015

1.1.0

1.1.0.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

11/04 2015

1.0.3

1.0.3.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

19/03 2015

1.0.2

1.0.2.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

30/01 2015

1.0.1

1.0.1.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

28/10 2014

1.0.0

1.0.0.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

30/05 2014

0.1.1

0.1.1.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren

30/05 2014

0.1.0

0.1.0.0

WebSocket client and server

  Sources   Download

MIT

The Development Requires

by Fredrik Liljegren