PHPackages                             gymadarasz/phpwebsockets - 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. gymadarasz/phpwebsockets

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

gymadarasz/phpwebsockets
========================

It is a fork of ghedipunk/PHP-Websockets library

0.0.4(8y ago)059PHP

Since Apr 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gymadarasz/PHPWebsockets)[ Packagist](https://packagist.org/packages/gymadarasz/phpwebsockets)[ RSS](/packages/gymadarasz-phpwebsockets/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)DependenciesVersions (6)Used By (0)

PHP WebSockets
==============

[](#php-websockets)

A WebSockets server written in PHP.
-----------------------------------

[](#a-websockets-server-written-in-php)

This project provides the functionality of an RFC-6455 (or Version 13) WebSockets server. It can be used as a stand-alone server, or as the back-end of a normal HTTP server that is WebSockets aware.

In order to use PHP WebSockets, you must have the ability to arbitrarilly execute scripts, which almost always means having shell access to your server, at a minimum. It is strongly encouraged that you have the ability to configure your machine's HTTP server. It is strongly discouraged to allow arbitrary execution of scripts from a web interface, as this is a major security hole.

To use:

Do not place the files in your web server's document root -- they are not intended to be ran through a web browser or otherwise directly accessible to the world. They are intended to be ran through PHP's Command Line Interface (CLI).

The main class, `WebSocketServer`, is intended to be inherited by your class, and the methods `connected`, `closed`, and `process` should be overridden. In fact, they are abstract, so they *must* be overridden.

Future plans include allowing child processes forked from the controlling daemon to support broadcasts and to relay data from one socket in a child process to another socket in a separate child proccess.

Browser Support
---------------

[](#browser-support)

Broswer Name Earliest Version

Google Chrome 16

Mozilla Firefox 11

Internet Explorer 10

Safari 6

Opera 12.10

Android Browser 4.4

Note: Current browser support is available at [http://en.wikipedia.org/wiki/WebSocket#Browser\_support](http://en.wikipedia.org/wiki/WebSocket#Browser_support) under the RFC-6455 row.

For Support
-----------

[](#for-support)

Right now, the only support available is in the Github Issues (  ). Once I reach my $250/mo Patreon reward level, I'll be able to maintain support forums for non-core code issues. If you'd like to support the project, and bring these forums closer to reality, you can do so at  .

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.7% 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 ~2 days

Total

3

Last Release

2993d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13c92c5505e1a310ea7dddc4729341489d5a4dd91d3bae20b43c01fd753db45b?d=identicon)[gymadarasz](/maintainers/gymadarasz)

---

Top Contributors

[![ghedipunk](https://avatars.githubusercontent.com/u/249662?v=4)](https://github.com/ghedipunk "ghedipunk (56 commits)")[![Xaraknid](https://avatars.githubusercontent.com/u/11662146?v=4)](https://github.com/Xaraknid "Xaraknid (17 commits)")[![blondie101010](https://avatars.githubusercontent.com/u/8424252?v=4)](https://github.com/blondie101010 "blondie101010 (1 commits)")[![evolve32](https://avatars.githubusercontent.com/u/155657413?v=4)](https://github.com/evolve32 "evolve32 (1 commits)")[![SegFaulty](https://avatars.githubusercontent.com/u/1591251?v=4)](https://github.com/SegFaulty "SegFaulty (1 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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