Skip to content

v0.1.0 — RSC for PHP, first release

Choose a tag to compare

@attitude attitude released this 07 Jul 00:14
a51517b

The first tagged release of phpx-server: React Server Components ideas ported to PHP with PHPX.

What's in it

  • Server components and a streaming HTML renderer
  • Suspense streaming via PHP Fibers — shell first, nested/parallel boundaries resolve out of order
  • Error boundaries — sync or while streaming
  • Server actions — plain <form> (no JS), JSON fetch, and redirect()
  • Client islands — React mounts into server-rendered markup across a JSON-only boundary
  • Flight navigation — client-driven route changes from a serialized tuple tree, plus a streaming NDJSON variant
  • cache() — per-request memoization
  • Head & metadata hoisting (React 19 style)
  • Router UX — prefetch-on-hover, pending indicator
  • examples/todo — a complete CRUD app exercising all of the above, fully working with JavaScript disabled
  • 39 PHPUnit tests, PHPStan level 5, CI on PHP 8.1 / 8.3 / 8.4

Docs

https://attitude.github.io/phpx-server/ — written for both PHP and React developers, including a full API reference.

Install

See Install in your project — Packagist publication is pending attitude/phpx#39.

🤖 Generated with Claude Code