PHPackages                             totoro1302/php-websocket-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. totoro1302/php-websocket-client

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

totoro1302/php-websocket-client
===============================

Php Websocket Client

v0.1.7(2y ago)111MITPHPPHP &gt;=8.2

Since May 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/antoine1302/php-websocket-client)[ Packagist](https://packagist.org/packages/totoro1302/php-websocket-client)[ RSS](/packages/totoro1302-php-websocket-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (12)Used By (0)

PHP Websocket Client
====================

[](#php-websocket-client)

What is it?
-----------

[](#what-is-it)

Basic implementation of PHP Websocket client that follow RFC6455

Installation
------------

[](#installation)

If you wish to install it in your project, require it via composer:

```
composer require totoro1302/php-websocket-client
```

Tests
-----

[](#tests)

### PHPUnit

[](#phpunit)

- Coverage must be 100% on `src/`

Stack description
-----------------

[](#stack-description)

### PHP

[](#php)

- PHP &gt;= 8.2 is required

### Extensions

[](#extensions)

- extension pcntl

### Dependencies

[](#dependencies)

- psr/log
- nyholm/psr7
- psr/http-factory

Run test
--------

[](#run-test)

### Run PHP unit tests

[](#run-php-unit-tests)

```
bin/test.sh unit
```

### Run code sniffer

[](#run-code-sniffer)

```
bin/test.sh static
```

### Run PHPStan static

[](#run-phpstan-static)

```
bin/test.sh static-analyze
```

### Run PHP 8.2 compatibility

[](#run-php-82-compatibility)

```
bin/test.sh php82-compatibility
```

### Run code smell fix

[](#run-code-smell-fix)

```
bin/test.sh static-fix
```

Usage
-----

[](#usage)

```
