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

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

websocket/websocket
===================

WebSocket implementation.

0.3(10y ago)13961MITPHPPHP &gt;=5.4.0

Since Oct 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lukaszm-rc/WebSocket)[ Packagist](https://packagist.org/packages/websocket/websocket)[ RSS](/packages/websocket-websocket/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

WebSocket [![Build Status](https://camo.githubusercontent.com/f7f01d808dcb9452dd701003be37935a43fa3a51fce65298edbb9227385ba86f/68747470733a2f2f7472617669732d63692e6f72672f6c756b61737a6d2d72632f7068702d776562736f636b65742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lukaszm-rc/WebSocket)
=============================================================================================================================================================================================================================================================================================================

[](#websocket-)

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

[](#description)

Simple, high performance WebSocket library written in PHP.

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

[](#requirements)

- PHP 5.4 &lt;
- Ev (php-ev) / libevent (php-libev) library \[highly recommended for optimal performance\]
-

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

[](#installation)

```
composer require websocket/websocket

```

Examples
--------

[](#examples)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

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

Total

3

Last Release

3905d ago

### Community

Maintainers

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

---

Tags

libeventphpphpreactwebsockets

### Embed Badge

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

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.1k](/packages/friendsofphp-php-cs-fixer)[cboden/ratchet

PHP WebSocket library

6.4k22.3M254](/packages/cboden-ratchet)[react/http

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

78127.7M462](/packages/react-http)[ratchet/pawl

Asynchronous WebSocket client

62010.0M241](/packages/ratchet-pawl)[gos/web-socket-bundle

Symfony Web Socket Bundle

6202.2M8](/packages/gos-web-socket-bundle)[jaggedsoft/php-binance-api

PHP Binance API is an asynchronous PHP library for the Binance API designed to be easy to use.

650186.1k4](/packages/jaggedsoft-php-binance-api)

PHPackages © 2026

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