PHPackages                             hfw/socket - 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. hfw/socket

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

hfw/socket
==========

Object-oriented BSD sockets and reactor.

0.2.0(5y ago)224MITPHPPHP ~7.4

Since Jan 24Pushed 4y ago2 watchersCompare

[ Source](https://github.com/hfw/socket)[ Packagist](https://packagist.org/packages/hfw/socket)[ Docs](https://github.com/hfw/socket)[ RSS](/packages/hfw-socket/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Helix::Socket
-------------

[](#helixsocket)

Standalone object-oriented BSD Sockets and WebSockets in `PHP 7.4`

[![](https://camo.githubusercontent.com/e44cb10f5bdf54d3f990d3366f9207a875a3ea4939ba587851d1c16bc78353f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d7e372e342d363636393939)](https://www.php.net)[![](https://camo.githubusercontent.com/fe9dd82ef39861260048015f3770ee3945e96389b84df55310ae7e4bf6ae8a8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d613530)](https://packagist.org/packages/hfw/socket)[![](https://camo.githubusercontent.com/5e0abb27bc77af909f6e0c7cd00eee168f348ba6cbde1d3b1bcb5789c20477fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c61636b)](LICENSE.txt)[![](https://camo.githubusercontent.com/a29c21e21b6f90534f19e62f9f8d567059d4c142617f9755d43ad6db5f9b31db/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6866772f736f636b65742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hfw/socket)[![](https://camo.githubusercontent.com/30ee44484c120d7efb9e1714bb3db78acf879bc4fe7fb36a7a037ceba7b8195a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6866772f736f636b65742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hfw/socket)

Built around `sockets.c` to ensure optimal integration.

Documentation:

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

[](#installation)

```
composer require "hfw/socket"

```

Class Diagram
-------------

[](#class-diagram)

[![](classes.png)](https://hfw.github.io/socket/inherits.html)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1937d ago

PHP version history (2 changes)0.1.0PHP ~7.3

0.2.0PHP ~7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cde1206945ba9660771b35de15d0bea7865c47594e0b5fabfa8590d6bd18172?d=identicon)[yoosefi](/maintainers/yoosefi)

---

Top Contributors

[![yoosefi](https://avatars.githubusercontent.com/u/2010434?v=4)](https://github.com/yoosefi "yoosefi (27 commits)")

---

Tags

websocketSocketreactor

### Embed Badge

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

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

###  Alternatives

[cboden/ratchet

PHP WebSocket library

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

Asynchronous WebSocket client

6148.9M214](/packages/ratchet-pawl)[ratchet/rfc6455

RFC6455 WebSocket protocol handler

23433.7M69](/packages/ratchet-rfc6455)[denis660/laravel-centrifugo

Centrifugo broadcaster for laravel

113164.7k](/packages/denis660-laravel-centrifugo)[amphp/websocket-client

Async WebSocket client for PHP based on Amp.

1613.0M39](/packages/amphp-websocket-client)[amphp/websocket

Shared code for websocket servers and clients.

453.1M9](/packages/amphp-websocket)

PHPackages © 2026

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