business

Verdict

Submitted 6/2/2026, 12:04:24 PM · Completed 6/2/2026, 12:05:45 PM

5.5
pivot
The idea

Ask HN: ZealPHP - Dangers Isolating Request-State in Coroutines?

Show original source text →
I built ZealPHP (https://php.zeal.ninja), a runtime experiment with OpenSwoole - to isolate what leaks between coroutines. The idea is to bring back the good old PHP coding style, but with coroutines, making async a default safe choice. Github: https://github.com/sibidharan/zealphp The goal is not to replace Laravel or Symfony. The goal is to replace the execution model of PHP application servers. OpenSwoole provides the coroutine runtime, HTTP/WebSocket server, workers, timers shared memory, workers etc. ZealPHP adds the application layer: routing, middlewares, sessions, request-scoped superglobals, templating, file-based APIs, isolation-contract, SSE+WS, yield anywhere and some CLI helpers. A new route can be just a few lines instead of writing apps around raw Openswoole server callbacks. And the old code, just works with 97% Apache+mod_php parity from our weighted assessment. So you have document root and everything where the files are bring served from, you can config everything that you can do via Apache and Nginx. So now PHP is the HTTP server, not a worker that dies. The hard migration problem is traditional PHP APIs like header(), session_start(), $_GET, $_SESSION etc assume request-local state, while long running coroutines server has many concurrent requests inside one process, that causes leaks. It's mitigated via a custom built PHP extension: ext-zealphp, purpose built to isolate state across coroutine context switches. The extension is doing the heavy lifting, please look at the isolation contract: https://github.com/sibidharan/ext-zealphp - it binds with on_resume, on_yield, on_close events from Openswoole and performs the isolation Does it look solid? Whatever mentioned in the Github works now! We still deal with op-cache corruption while testing with Wordpress in coroutines mode, which I am actively working to fix. Thats the hardest, it requires help from upstream at the moment. However, the framework is useable: One `php app.php` can give you HTTP, WS, SSE, shared memory, task workers from same application server, no seperate Node.js sidecars. The app runs in many modes and the experimental mode "coroutine-legacy" attempts to run the old PHP mental model code in coroutines mode from document root. Of course there are limitations I am trying to solve actively. I also created a Symfony bridge, CGI compatibility mode for existing apps. I have also created lessons for HN to try: https://php.zeal.ninja/learn It is alpha now. If you have run long-lived PHP with Swoole/OpenSwoole, Octane, FrankenPHP, RR or ReactPHP, what broke first in production?? Is there any other existing frameworks that does this kind of request-state isolation?
TRIZ inventive level: 3/5· Principles: parameter changes, self-service
Synthesis verdict
**Pivot**: ZealPHP demonstrates significant technical depth and innovation in addressing request-state isolation in coroutine-based PHP applications. However, its commercial viability is constrained by a shrinking PHP market, competition from established alternatives, and significant technical hurdles, notably the op-cache corruption issue with WordPress. The project's alpha status, limited ecosystem buy-in, and uncertain revenue path necessitate a pivot to focus on stabilizing the core technology, expanding its ecosystem, and clarifying its monetization strategy.

Strengths

  • - Unique value proposition in providing request-state isolation via a custom PHP extension (ext-zealphp) for async PHP applications
  • - 97% Apache/mod_php parity, offering a low migration barrier for legacy PHP code
  • - Novel approach to turning the PHP runtime into an async-capable HTTP server, eliminating the need for separate worker processes
  • - Potential for high-margin niches in enterprise licensing, SaaS hosting, or support contracts
  • - Strong unit economics with near-zero marginal cost for the OSS framework

Weaknesses

  • - Limited addressable market due to PHP's declining share in new projects and the majority of existing PHP applications not requiring async
  • - Competition from well-funded alternatives such as FrankenPHP, ReactPHP, and Node.js/Go web servers
  • - Ongoing op-cache corruption issue with WordPress, a critical application for PHP adoption
  • - Dependence on OpenSwoole and the custom ext-zealphp extension, which may not receive broad community or upstream support
  • - Uncertain revenue path and risk of insufficient ecosystem buy-in

Best angle

ZealPHP should focus on stabilizing its core technology, resolving the op-cache corruption issue, and expanding its ecosystem to increase adoption and clarify its monetization strategy, potentially through enterprise licensing or SaaS hosting models.

Panel verdicts

Competition

nvidia/nemotron-3-nano-omni-30b-a3b-reasoning

7.0

“ZealPHP's unique value lies in its transparent, drop - in replacement for the PHP execution model that isolates request state via a dedicated OpenSwoole extension, enabling true async defaults without breaking existing Apache - served code.”

ZealPHP differentiates itself by turning the PHP runtime itself into an async-capable HTTP server, eliminating the need for separate worker processes and allowing developers to keep the familiar request - local coding style while leveraging coroutines. Its core innovation is the custom ext-zealphp extension that isolates superglobals and other request-scoped state across coroutine resume/yield events, a mechanism not natively provided by existing PHP frameworks. Competitors such as Laravel Octane (Swoole), Symfony with external process managers, and Node.js/Go web servers already offer async request handling, but they either require a separate process model, manual state management, or break backward compatibility with traditional PHP APIs. ZealPHP's claim of 97% Apache/mod_php parity suggests a low migration barrier, which is a strong competitive advantage. However, durability is currently limited by op - cache corruption issues when running WordPress in coroutine mode and the need for upstream cooperation, indicating that the solution is still experimental and may require significant stabilization before widespread production use. The framework's alpha status, active bug fixing, and niche focus on long - running PHP servers further temper its market readiness, but the technical approach is novel and, if the extension proves stable, could create a defensible niche for PHP developers seeking true async defaults without abandoning existing codebases.

Monetization

mistralai/mistral-medium-3.5-128b

8.0

“Monetize the proprietary ext-zealphp extension via enterprise licensing or SaaS hosting, leveraging its unique request-state isolation as the core defensible asset.”

ZealPHP addresses a critical gap in PHP's async ecosystem by providing request-state isolation via a custom extension (ext-zealphp), enabling legacy PHP code to run safely in a coroutine-based OpenSwoole runtime. The value proposition is strong: unified HTTP/WebSocket/SSE/task workers in a single process, 97% Apache/mod_php parity, and minimal migration friction. The monetization path is less clear but could target high-margin niches: (1) **Enterprise licensing** for the extension (e.g., $500 - $2,000/year per server) given its proprietary isolation logic, (2) **SaaS hosting** for ZealPHP apps (e.g., $50 - $200/month with auto-scaling), or (3) **support contracts** for legacy app migrations (e.g., $10,000 - $50,000 per project). Unit economics are favorable: near-zero marginal cost for the OSS framework, with margins >80% on licensing/SaaS. Risks include upstream op-cache issues (blocking WordPress adoption) and competition from FrankenPHP/ReactPHP, but ZealPHP's isolation contract is a unique moat. Early adopters would likely be PHP-heavy enterprises (e.g., e-commerce, CMS platforms) needing async without rewrites.

Risk

nvidia/llama-3.3-nemotron-super-49b-v1

4.0

“ZealPHP's success hinges on overcoming significant technical and adoption hurdles with limited financial runway.”

ZealPHP faces significant challenges despite its innovative approach. **Regulation** is less of a concern here, but **platform risk** is high due to dependence on OpenSwoole and the custom `ext-zealphp` extension, which may not receive broad community or upstream support, potentially limiting scalability and long-term viability. **Churn** could spike if the learning curve proves too steep for developers accustomed to traditional PHP workflows or if stability issues (like the ongoing op-cache corruption with Wordpress) persist. **No-budget customers** might be attracted to the 'free' aspect, but sustaining development and support without a clear revenue model is risky. Specific failure modes within 6-12 months include: 1. **Insufficient Ecosystem Buy-In**: Lack of adoption by major PHP frameworks (beyond the current Symfony bridge) and hosting providers, limiting ZealPHP's reach. 2. **Unresolved Stability Issues**: Failure to fully resolve op-cache corruption and other legacy PHP compatibility problems, deterring production use. 3. **Sustainability Crisis**: Inability to establish a viable business model, leading to halted development.

Market

moonshotai/kimi-k2.6(fallback #1)

4.0

“A technically elegant solution to a real problem in a shrinking market where the few buyers who need it already have funded alternatives they trust more.”

ZealPHP targets a narrow, technically sophisticated niche: PHP developers running high-concurrency applications who are dissatisfied with existing async solutions (Swoole/OpenSwoole, FrankenPHP, RoadRunner). The core problem - request state isolation in coroutine-based PHP - is real and painful for this group. However, the addressable market is severely constrained: (1) PHP's overall share of new projects is declining, with most greenfield work moving to Node.js, Go, or Python; (2) within PHP, the vast majority runs on traditional Apache/nginx + FPM and has no need for async; (3) those who need async already have FrankenPHP (Symfony-backed, Octane integration), RoadRunner (mature, Spiral framework), or Swoole/OpenSwoole directly. The '97% Apache parity' claim is compelling for legacy migration, but the op-cache corruption with WordPress reveals the fatal gap: if it can't run the most common PHP application reliably, adoption stalls. The technical achievement is genuine - custom PHP extension for coroutine isolation is non-trivial - but commercial viability depends on whether teams will bet production infrastructure on an alpha project from a solo developer when alternatives exist. The 'bring back old PHP style' positioning is clever but may mislead: true async safety requires understanding coroutine boundaries regardless. Potential revenue paths (support, enterprise features, hosting) compete against well-funded alternatives and PHP's entrenched 'good enough' infrastructure. The HN audience enthusiasm doesn't translate to procurement budgets. Most likely outcome: valuable open-source contribution, limited commercial traction.

Viability

nvidia/llama-3.3-nemotron-super-49b-v1(fallback #1)

8.0

“ZealPHP's technical novelty and progress are balanced by the complexity of its goals and the significant challenge of resolving op-cache corruption, making its v1 timeline ambitious for a small team.”

ZealPHP demonstrates significant technical depth by leveraging OpenSwoole for coroutines and developing a custom PHP extension (ext-zealphp) to address state isolation challenges, a major hurdle in adopting async PHP. The project's alpha status, working Symfony bridge, CGI compatibility, and learning resources indicate substantial progress. However, the ongoing op-cache corruption issue with Wordpress and the inherent complexity of state isolation in a coroutine environment introduce uncertainty. The goal of not replacing full-stack frameworks like Laravel/Symfony but rather the execution model is well-defined and focused. Given the solo/2-person team context, the 4-12 week timeline for v1 seems ambitious due to the deep technical challenges, particularly the op-cache issue requiring upstream collaboration. Yet, the core functionality's reported stability (97% Apache/mod_php parity) and the lack of direct competitors in request-state isolation for PHP suggest a viable, albeit challenging, project.

Synthesized by meta/llama-3.3-70b-instruct · 21.4s