PHPackages                             babdev/websocket-server - 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. babdev/websocket-server

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

babdev/websocket-server
=======================

PHP library to create a WebSocket server

0.1.x-dev(5mo ago)423.1k—3%2MITPHPPHP 8.4.\* || 8.5.\*CI passing

Since Nov 29Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/BabDev/WebSocket-Server)[ Packagist](https://packagist.org/packages/babdev/websocket-server)[ GitHub Sponsors](https://github.com/mbabker)[ RSS](/packages/babdev-websocket-server/feed)WikiDiscussions 0.1 Synced 1mo ago

READMEChangelogDependencies (16)Versions (1)Used By (0)

PHP WebSocket Server
====================

[](#php-websocket-server)

[![Latest Stable Version](https://camo.githubusercontent.com/9c3e7684bba8103513561342a65c621a15fafeae9e6a9f35fdc92efa6b1d8660/68747470733a2f2f706f7365722e707567782e6f72672f6261626465762f776562736f636b65742d7365727665722f76)](https://packagist.org/packages/babdev/websocket-server) [![Latest Unstable Version](https://camo.githubusercontent.com/dfaa7ef0f8c4ae1112ae83e2dc984434632838c53bc36b1c7c83f158278cefac/68747470733a2f2f706f7365722e707567782e6f72672f6261626465762f776562736f636b65742d7365727665722f762f756e737461626c65)](https://packagist.org/packages/babdev/websocket-server) [![Total Downloads](https://camo.githubusercontent.com/f0438c1dc74d81e2f8b32655a221aca0dfa46096888d3d90ea97d8c3f17f15c6/68747470733a2f2f706f7365722e707567782e6f72672f6261626465762f776562736f636b65742d7365727665722f646f776e6c6f616473)](https://packagist.org/packages/babdev/websocket-server) [![License](https://camo.githubusercontent.com/8ff6bb4325fc58ee3bf4d638f651c287fd1ddc5a2672843eeb82ee8fc020ab40/68747470733a2f2f706f7365722e707567782e6f72672f6261626465762f776562736f636b65742d7365727665722f6c6963656e7365)](https://packagist.org/packages/babdev/websocket-server) [![Run Tests](https://github.com/BabDev/WebSocket-Server/workflows/Run%20Tests/badge.svg?branch=0.1)](https://github.com/BabDev/WebSocket-Server/workflows/Run%20Tests/badge.svg?branch=0.1)

The PHP WebSocket Server package is a library built on top of [ReactPHP](https://reactphp.org/) to run a WebSocket server.

Documentation
-------------

[](#documentation)

Please see the [BabDev website](https://www.babdev.com/open-source/packages/websocket-server/docs/1.x/intro) for detailed information on how to use this package.

Security
--------

[](#security)

If you believe you have discovered a security issue with this package, please email  with information about the issue. Do **NOT** use the public issue tracker for security issues.

Acknowledgements
----------------

[](#acknowledgements)

This package is based heavily on the design of [Ratchet](https://github.com/ratchetphp/Ratchet).

License
-------

[](#license)

Pagerfanta is licensed under the MIT License. See the [LICENSE file](/LICENSE) for full details.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance70

Regular maintenance activity

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52468993b62b781c3c94028d5626d35fd53297482813af84db6e96e81ae67283?d=identicon)[mbabker](/maintainers/mbabker)

---

Top Contributors

[![mbabker](https://avatars.githubusercontent.com/u/368545?v=4)](https://github.com/mbabker "mbabker (163 commits)")

---

Tags

phpwamp-serverwamp-v1websocket-serverwebsocketWAMPwebsocket server

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/babdev-websocket-server/health.svg)

```
[![Health](https://phpackages.com/badges/babdev-websocket-server/health.svg)](https://phpackages.com/packages/babdev-websocket-server)
```

###  Alternatives

[cboden/ratchet

PHP WebSocket library

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

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.6k9.4M48](/packages/laravel-reverb)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[gos/web-socket-bundle

Symfony Web Socket Bundle

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

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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