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(4w ago)434.6k↓12.7%2[1 PRs](https://github.com/BabDev/WebSocket-Server/pulls)1MITPHPPHP 8.4.\* || 8.5.\*CI passing

Since Jun 5Pushed 2w 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 2d ago

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

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

48

—

FairBetter than 93% of packages

Maintenance96

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 98.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

Unknown

Total

1

Last Release

28d 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 (175 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 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

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[sylius/sylius

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

8.5k5.9M737](/packages/sylius-sylius)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.6k](/packages/symfony-framework-bundle)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)

PHPackages © 2026

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