~/talk

Really, Can Laravel Run Inside Node.js?

TalkinItalianat laravelday 2025 · on Thursday, 2025-11-20· [nodejs, php]
slides:none on file

A project called php-node embeds a compiled PHP interpreter into a Node.js process via Rust bindings and the embed SAPI to run Laravel inside Node. The demo shows a working proof-of-concept: Laravel serves routes within Node, integrates with Vite/Next/Astro, streams WebSocket data on the main process, and uses VAT as an internal application server for domain routing without external network hops. Performance is acceptable on a developer machine but requires Rust-level optimizations and configuration tuning for production scale.

AI-written summary · about

  1. 0:00Can Laravel run in Node.js?
  2. 1:54PHP in Node.js
  3. 3:19PHP Server APIs
  4. 7:56CLI vs HTTP SAPI
  5. 11:30Embed SAPI in Node
  6. 15:45Non-blocking PHP in Node
  7. 16:30VAT as multi-language server
  8. 18:39VAT config and routing
  9. 20:23Performance and limits
  10. 21:06Laravel with Next.js demo
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.