Lightweight PHP WebSocket server handling several clients.

1.0.0 2015-05-14 18:12 UTC

This package is not auto-updated.

Last update: 2022-01-22 03:24:19 UTC


PHP Push WebSocket is an implementation of the WebSocket protocol following the specification of RFC 6455. It also includes a client side for examples.

Installation with Composer

To install the latest stable version: composer require "srchea/php-push-web-socket"


  1. run a server instance: php websocket_server.php.
  2. Open websocket_client.html in a browser over HTTP protocol.

Examples of use cases

  • Instant messenger
  • Push app notifications
  • Shared applications like presentation (slides), collaborative text editors
  • Data monitoring, and much more

Bottom line


Feel free to contribute! :-)