# reactphp/event-loop

ReactPHP's core reactor event loop that libraries can use for evented I/O.

Repository: https://github.com/reactphp/event-loop
Canonical: https://ross.abutalabs.com/products/event-loop
Homepage: https://reactphp.org/event-loop/
Language: PHP
License: MIT
License Family: permissive
Topics: php, reactphp, event-loop
Last push: 2026-07-01T10:27:46+00:00

## Health v2 (maintenance only)
Score: 69/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 25, longevity 100
- inputs: {"age_days": 5228, "days_push": 63, "days_rel": 289, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1333, forks 130 (observed 2026-08-28T04:04:24.783136+00:00)

## What it is
ReactPHP's core reactor event loop providing a common LoopInterface for evented, non-blocking I/O in PHP. It enables interoperable async libraries to share a single loop with timers, stream watchers, ticks, and signal handling.

## Use cases
- build an async non-blocking HTTP server in PHP
- run timers and periodic tasks in an event-driven PHP application
- watch streams for readable/writable data without blocking
- share one event loop across multiple async PHP libraries
- handle POSIX signals in a long-running PHP process
- build async network clients and servers on top of a reactor

## When to choose
- you are building or using ReactPHP async libraries and need a shared event loop
- you need non-blocking I/O, timers, and signal handling in plain PHP
- you want pluggable loop backends (stream_select, ext-event, ext-ev, ext-uv)

## When to avoid
- you are building a simple synchronous PHP application with no concurrency needs
- you prefer a coroutine/fiber-based async model like Amp or native Fibers
- you need a full web framework rather than a low-level event loop component

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, networking, developer-tools
- domain: developer-tools, backend, web-development, networking
- platform: php, windows, cross-platform
- tags: event-loop, async, reactor, event-driven, non-blocking-io, reactphp, timers, stream-select, ext-uv, linux, macos

## Member repositories
- reactphp/event-loop (main) score 69

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.783136+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-30T04:44:54.675043+00:00, confidence not recorded.
  - readme: https://github.com/reactphp/event-loop (fetched 2026-08-28T04:04:24.783136+00:00, sha 6be002436ed0)
  - homepage: https://reactphp.org/event-loop/ (fetched 2026-08-29T12:04:02.406130+00:00, sha 7ced2f39cf7b)
  - site_page: https://reactphp.org/changelog.html (fetched 2026-08-29T12:04:02.410620+00:00, sha accf57fc05ce)
  - site_page: https://reactphp.org/event-loop/changelog.html (fetched 2026-08-29T12:04:02.414629+00:00, sha b57b1901e1a0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
