nikspyratos / toybox

Opinionated TALL stack starter kit for Laravel solopreneurs
MIT License
117 stars 6 forks source link

FrankenPHP #3

Closed nikspyratos closed 7 months ago

nikspyratos commented 8 months ago

With the v1 release of FrankenPHP, it's looking pretty impressive.

The static build feature effectively allows you to deploy a binary of PHP (& extensions) + the web app + Caddy. Doing this instead of managing dependencies (or Docker) on the server aligns well with the Toybox project's goals of simplicity.

One caveat is that Octane support is still WIP.

I'm going to be investigating how to use this for Toybox and re-orient the scripts around it.

nikspyratos commented 7 months ago

Octane support now in.

Likely able to use FrankenPHP as the server, but I'm struggling to get the static build working on macOS and I don't think the juice is worth the squeeze right now. Building the binary also includes compiling the extensions from source, which sounds like a waste of CPU to me.

I'll keep an eye out on FrankenPHP to maybe switch to it in future but not going to pursue it right now.