PHPackages                             andreibu/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. andreibu/php\_websocket\_client

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

andreibu/php\_websocket\_client
===============================

PHP WebSocket Client For Laravel.

0.2(9y ago)044MITPHPPHP &gt;=5.3.23

Since Mar 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/AndreiBu/php_websocket_client)[ Packagist](https://packagist.org/packages/andreibu/php_websocket_client)[ RSS](/packages/andreibu-php-websocket-client/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP WebSocket Client
====================

[](#php-websocket-client)

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

[](#installation)

```
composer require andreibu/php_websocket_client

```

Laravel 5
---------

[](#laravel-5)

### Setup

[](#setup)

Add ServiceProvider to the providers array in `config/app.php`.

```

   'providers' => [
    ...
	AndreiBu\php_websocket_client\WSServiceProvider::class,

	],

   'aliases' => [
    ...

	'PHP_WS' => AndreiBu\php_websocket_client\Facades\PHP_WS::class,
	],

```

### Configuration

[](#configuration)

```
    host
    port
    path

```

### Usage

[](#usage)

##### send

[](#send)

```
use PHP_WS;
PHP_WS::send(json_encode(array('type'=>'send_message_to','id'=>'1000001','msg'=>'laravel msg ')));
```

Contribute
----------

[](#contribute)

[https://github.com/AndreiBu/php\_websocket\_client/pulls](https://github.com/AndreiBu/php_websocket_client/pulls)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3384d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16398626?v=4)[Andrei Buldakov](/maintainers/AndreiBu)[@AndreiBu](https://github.com/AndreiBu)

---

Tags

phplaravelwebsocketlaravel5

### Embed Badge

![Health badge](/badges/andreibu-php-websocket-client/health.svg)

```
[![Health](https://phpackages.com/badges/andreibu-php-websocket-client/health.svg)](https://phpackages.com/packages/andreibu-php-websocket-client)
```

###  Alternatives

[salmanzafar/laravel-mqtt

A simple Laravel Library to connect/publish/subscribe to MQTT broker

102155.5k1](/packages/salmanzafar-laravel-mqtt)[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4984.0k](/packages/basement-chat-basement-chat)[sockeon/sockeon

Framework-agnostic PHP WebSocket and HTTP server library with attribute-based routing and support for namespaces and rooms.

291.5k2](/packages/sockeon-sockeon)[warriorxk/phpwebsockets

A websocket library with support for IPC using socket pairs

1325.5k](/packages/warriorxk-phpwebsockets)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
