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>
22 lines
790 B
Modula-2
22 lines
790 B
Modula-2
module forge.lthn.ai/core/go-php
|
|
|
|
go 1.26.0
|
|
|
|
require github.com/dunglas/frankenphp v1.5.0
|
|
|
|
require (
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/dolthub/maphash v0.1.0 // indirect
|
|
github.com/gammazero/deque v1.0.0 // indirect
|
|
github.com/maypok86/otter v1.2.4 // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/prometheus/client_golang v1.21.1 // indirect
|
|
github.com/prometheus/client_model v0.6.1 // indirect
|
|
github.com/prometheus/common v0.63.0 // indirect
|
|
github.com/prometheus/procfs v0.16.0 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
go.uber.org/zap v1.27.0 // indirect
|
|
golang.org/x/sys v0.31.0 // indirect
|
|
google.golang.org/protobuf v1.36.5 // indirect
|
|
)
|