PHPackages                             bref/api-gateway-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. bref/api-gateway-websocket-client

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

bref/api-gateway-websocket-client
=================================

Websocket client for API Gateway Websockets

1.1.2(1y ago)948.1k↓15.4%1MITPHPPHP &gt;=8.0

Since Oct 28Pushed 1y ago2 watchersCompare

[ Source](https://github.com/brefphp/api-gateway-websocket-client)[ Packagist](https://packagist.org/packages/bref/api-gateway-websocket-client)[ GitHub Sponsors](https://github.com/mnapoli)[ RSS](/packages/bref-api-gateway-websocket-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

Websocket client for API Gateway Websockets.

Use this library when building websocket APIs with Bref.

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

[](#installation)

```
composer require bref/api-gateway-websocket-client
```

Usage
-----

[](#usage)

```
$client = \Bref\ApiGatewayWebsocket\SimpleWebsocketClient::create($apiId, 'us-east-1', 'default');

$client->message($connectionId, 'Hello world!');
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

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 ~238 days

Total

4

Last Release

583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/329a6111724074f5388e95dd41a03ccf3c43f4bfe1ecf27c94c9efc6f7823228?d=identicon)[mnapoli](/maintainers/mnapoli)

---

Top Contributors

[![mnapoli](https://avatars.githubusercontent.com/u/720328?v=4)](https://github.com/mnapoli "mnapoli (10 commits)")[![inoha-kudo](https://avatars.githubusercontent.com/u/34826055?v=4)](https://github.com/inoha-kudo "inoha-kudo (1 commits)")

---

Tags

websocketserverlessbrefapi-gateway

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bref-api-gateway-websocket-client/health.svg)

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

###  Alternatives

[cboden/ratchet

PHP WebSocket library

6.4k21.4M239](/packages/cboden-ratchet)[swow/swow

Coroutine-based multi-platform support engine with a focus on concurrent I/O

1.3k2.1M84](/packages/swow-swow)[ratchet/pawl

Asynchronous WebSocket client

6148.9M214](/packages/ratchet-pawl)[ratchet/rfc6455

RFC6455 WebSocket protocol handler

23433.7M69](/packages/ratchet-rfc6455)[wrench/wrench

PHP WebSocket client/server library

5903.1M11](/packages/wrench-wrench)[gos/web-socket-bundle

Symfony Web Socket Bundle

6202.2M8](/packages/gos-web-socket-bundle)

PHPackages © 2026

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