phasync/swerve
An asynchronous HTTP client for PHP built on phasync. Swerve offers a clean, fiber-based API for non-blocking requests, making it easy to perform efficient concurrent I/O without extensions or complex event-loop code.
Consider it when:
Look elsewhere when:
To executives: "This is a lightweight PHP application server that could let us serve more traffic per instance and build real-time features without new infrastructure. It's early-stage — small community, unproven at scale — so I'm not proposing we standardize on it. I'm proposing a two-week spike on one non-critical internal service, with a rollback to our current setup and a written go/no-go. Cost is engineering time only; the upside is either a cheaper path to our latency targets or a well-evidenced 'no' that closes the question for a year."
To engineering: "Swerve is a fiber-based application server on phasync. The value proposition is concurrency in-process — no FPM process-per-request, no separate runtime binary, and streaming/SSE becomes straightforward. The cost is that long-lived workers change our assumptions: container state, singletons, static caches, and memory growth all need auditing. Before we commit, I want a spike that answers three things: does it survive our worst-case endpoint without leaking, what's the actual p95 delta on our traffic mix, and what does our deploy/restart story look like. If any of those is unclear, we stay on the current stack and revisit."
Framing note for both audiences: the deciding factor is not the package's feature list — it's whether the team can operate a long-running async PHP runtime safely. Lead with that, and the adoption conversation becomes an engineering-capacity question rather than a tooling argument.
How can I help you explore Laravel packages today?