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

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

dazzle-php/websocket
====================

Dazzle Asynchronous Websocket Client / Server.

181PHP

Since Jul 30Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Dazzle Async Websocket Client / Server
======================================

[](#dazzle-async-websocket-client--server)

[![Build Status](https://camo.githubusercontent.com/1a184b29c6bfffb9d7c34b7f8f248b1a628b2e0312c2ec9b4e8901d8e6028a35/68747470733a2f2f7472617669732d63692e6f72672f64617a7a6c652d7068702f776562736f636b65742e737667)](https://travis-ci.org/dazzle-php/websocket)[![Code Coverage](https://camo.githubusercontent.com/5b840af7e1e264d438eab6bb18420ad0603675cfa0222b93c697d60f982d92f9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617a7a6c652d7068702f776562736f636b65742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dazzle-php/websocket/?branch=master)[![Code Quality](https://camo.githubusercontent.com/ec1dcff477d1b9ce235afa546da4e75b75e621de1ca2b9b84ef8b8c77c8d43ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617a7a6c652d7068702f776562736f636b65742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dazzle-php/websocket/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/34659c8e210fb377c5b7eada8956123e6c3f53658b86b3e211615312dff58233/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f776562736f636b65742f762f737461626c65)](https://packagist.org/packages/dazzle-php/websocket)[![Latest Unstable Version](https://camo.githubusercontent.com/7816838e1399961c8b5584c68296831cf2c91b1c883166c720a259d4f4842d1a/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f776562736f636b65742f762f756e737461626c65)](https://packagist.org/packages/dazzle-php/websocket)[![License](https://camo.githubusercontent.com/d181269e31427ab1607c44aef393ca2d1ac2ae7bb69897d2bd8e7f2572cfe58d/68747470733a2f2f706f7365722e707567782e6f72672f64617a7a6c652d7068702f776562736f636b65742f6c6963656e7365)](https://packagist.org/packages/dazzle-php/websocket/license)

> **Note:** This repository is part of [Dazzle Project](https://github.com/dazzle-php/dazzle) - the next-gen library for PHP. The project's purpose is to provide PHP developers with a set of complete tools to build functional async applications. Please, make sure you read the attached README carefully and it is guaranteed you will be surprised how easy to use and powerful it is. In the meantime, you might want to check out the rest of our async libraries in [Dazzle repository](https://github.com/dazzle-php) for the full extent of Dazzle experience.

[![](https://raw.githubusercontent.com/dazzle-php/dazzle/master/media/dazzle-x125.png)](https://raw.githubusercontent.com/dazzle-php/dazzle/master/media/dazzle-x125.png)

Description
-----------

[](#description)

TODO

Feature Highlights
------------------

[](#feature-highlights)

Dazzle Websocket features:

TODO

Provided Example(s)
-------------------

[](#provided-examples)

### Quickstart

[](#quickstart)

TODO

### Additional

[](#additional)

TODO

Comparison
----------

[](#comparison)

This section contains Dazzle vs React comparison many users requested. If you are wondering why this section has been created, see the [author's note](https://github.com/dazzle-php/websocket/blob/master/NOTE.md).

#### Performance

[](#performance)

TODO

#### Details

[](#details)

TODO

Requirements
------------

[](#requirements)

Dazzle Websocket requires:

- PHP-5.6 or PHP-7.0+,
- UNIX or Windows OS.

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

[](#installation)

To install this library make sure you have [composer](https://getcomposer.org/) installed, then run following command:

```
$> composer require dazzle-php/websocket

```

Tests
-----

[](#tests)

Tests can be run via:

```
$> vendor/bin/phpunit -d memory_limit=1024M

```

Versioning
----------

[](#versioning)

Versioning of Dazzle libraries is being shared between all packages included in [Dazzle Project](https://github.com/dazzle-php/dazzle). That means the releases are being made concurrently for all of them. On one hand this might lead to "empty" releases for some packages at times, but don't worry. In the end it is far much easier for contributors to maintain and -- what's the most important -- much more straight-forward for users to understand the compatibility and inter-operability of the packages.

Contributing
------------

[](#contributing)

Thank you for considering contributing to this repository!

- The contribution guide can be found in the [contribution tips](https://github.com/dazzle-php/websocket/blob/master/CONTRIBUTING.md).
- Open tickets can be found in [issues section](https://github.com/dazzle-php/websocket/issues).
- Current contributors are listed in [graphs section](https://github.com/dazzle-php/websocket/graphs/contributors)
- To contact the author(s) see the information attached in [composer.json](https://github.com/dazzle-php/websocket/blob/master/composer.json) file.

License
-------

[](#license)

Dazzle Websocket is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

---

*"Everything is possible. The impossible just takes longer."* ― Dan Brown

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/edd40f7be77d3f9934f998dc0859d0562e42c715d61f5139feaf948a2fcb6050?d=identicon)[khelle](/maintainers/khelle)

---

Top Contributors

[![khelle](https://avatars.githubusercontent.com/u/5642657?v=4)](https://github.com/khelle "khelle (1 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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