# ratchetphp/Ratchet

Asynchronous WebSocket server

Repository: https://github.com/ratchetphp/Ratchet
Canonical: https://ross.abutalabs.com/products/ratchetphp-ratchet
Homepage: http://socketo.me
Language: PHP
License: MIT
License Family: permissive
Topics: websocket, ratchet, php, websockets, async
Last push: 2026-06-14T13:01:18+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 87, release rhythm 8, longevity 100
- inputs: {"age_days": 5252, "days_push": 80, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6437, forks 787 (observed 2026-08-28T04:09:43.408595+00:00)

## What it is
Ratchet is a loosely coupled PHP library for asynchronously serving WebSockets, letting developers build real-time, bi-directional applications through composable components. It provides an event-driven server built on ReactPHP with routing, session handling, and WAMP support.

## Use cases
- build a real-time chat server in PHP
- push live notifications to browsers over websockets
- create a bi-directional event-driven connection between client and server
- add websocket support to an existing PHP application
- implement a live dashboard with streaming updates
- route websocket connections to different handlers by path

## When to choose
- you need real-time websocket servers in a PHP stack
- you want composable, reusable server components with simple interfaces
- you want a battle-tested library that passes the Autobahn websocket test suite

## When to avoid
- you need a modern, actively evolving websocket solution with latest PHP support
- you cannot run long-lived shell processes or configure reverse proxies
- your project is in another language or you prefer Node.js/Go websocket servers

## Facets
- artifact type: library
- maturity: maintenance
- function: websocket, http-server, middleware, routing
- domain: web-development, backend, apis
- platform: php, windows, cli
- tags: async, event-driven, real-time, wamp, reactphp, composer, linux, macos

## Member repositories
- ratchetphp/Ratchet (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:43.408595+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:44:43.252644+00:00, confidence not recorded.
  - readme: https://github.com/ratchetphp/Ratchet (fetched 2026-08-28T04:09:43.408595+00:00, sha 540aff433ce5)
  - homepage: http://socketo.me (fetched 2026-08-29T08:41:34.426918+00:00, sha bbbb2badbaac)
  - site_page: http://socketo.me/docs (fetched 2026-08-29T08:41:34.429471+00:00, sha e5e69c7acc04)
  - site_page: http://socketo.me/docs/hello-world (fetched 2026-08-29T08:41:34.434859+00:00, sha d8aa4fb8f496)
  - site_page: http://socketo.me/docs/design (fetched 2026-08-29T08:41:34.437345+00:00, sha 75f4572e95cd)
  - site_page: http://socketo.me/api/namespace-Ratchet.html (fetched 2026-08-29T08:41:34.432634+00:00, sha d8ce24929854)
- Data as of 2026-08-30T08:39:29.467469+00:00.
