Skip to content

n this tutorial, we will create a script that runs in a Linux/Mac/Windows terminal and acts as a WebSocket client to connect to any WebSocket server.

Notifications You must be signed in to change notification settings

piesocket/php-websocket-client-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP WebSocket Client Example

In this tutorial, we will create a script that runs in a Linux/Mac/Windows terminal and acts as a WebSocket client to connect to any WebSocket server, Using textalk/websocket library.

Tutorial

There is a tutorial for this repository published on PieSocket: Building a PHP WebSocket Client

Installation

  • git clone [email protected]:piesocket/php-websocket-client-example.git
  • cd php-websocket-client-example
  • composer install

Usage

  • Change the demo WebSocket Server from PieSocket to your own
  • Run php client.php

About

n this tutorial, we will create a script that runs in a Linux/Mac/Windows terminal and acts as a WebSocket client to connect to any WebSocket server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages