Building Frankenscriptling: Running Scriptling Inside FrankenPHP
08 Jun 2026
Let me introduce you to Frankenscriptling, a custom FrankenPHP build that exposes the Scriptling scripting language as a native PHP class. Yes, you read that right. PHP code can now instantiate a Scriptling VM, evaluate scripts, pass variables back and forth, import libraries, and call functions, all from within a standard PHP request.
Frankenscriptling is three technologies stitched together:
- FrankenPHP: a modern PHP application server built on top of Caddy, written in Go, that supports worker modes and Go-based PHP extensions
- Scriptling: a Python-like, sandboxed scripting language implemented in Go, designed for embedding and LLM agent code execution
- A Go extension layer: a thin bridge that exposes Scriptling’s Go API as PHP methods via FrankenPHP’s extension system
Should this exist? Probably not in any architecture document. But the integration is real, it compiles, it passes tests, and it solves a genuine problem: giving PHP applications access to a sandboxed, Python-like scripting runtime without subprocess calls, without Foreign Function Interface, and without leaving the request lifecycle.
Senior PHP Developer, System Administrator and Go Enthusiast