Commit graph

3 commits

Author SHA1 Message Date
Snider
39edb7f289 fix: unify FrankenPHP commands into single php group
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 1m29s
- Remove init() + findOrCreatePHPCmd from cmd_serve_frankenphp.go
- Use registerFrankenPHP hook pattern for CGO-conditional registration
- Rename env.go Environment → RuntimeEnvironment to avoid collision
- Add cgo build tag to handler.go and env.go

CGO build (21MB): all dev commands + serve:embedded + exec
Non-CGO build (16MB): dev commands only (shell out to system PHP)

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 17:31:03 +00:00
Snider
e894e4b5bc fix: add cgo build tags to FrankenPHP files, add .gitignore
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 1m30s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 17:27:43 +00:00
Claude
5436df2cf4
feat: FrankenPHP Go embedding library
Extracted from host-uk/core/cmd/core-app/ into a reusable package.

Provides:
- Handler: http.Handler serving PHP via in-process FrankenPHP
- Extract: embed.FS to temp dir extraction for PHP runtime
- PrepareEnvironment: .env, SQLite, persistent storage setup
- Bridge: localhost HTTP API for PHP → Go communication

Requires CGo + PHP headers. Build with: -tags nowatcher

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 02:49:46 +00:00