Commit graph

9 commits

Author SHA1 Message Date
Snider
05d2480f5e fix: restore init() for command self-registration
Some checks failed
Security Scan / security (push) Successful in 7s
Test / test (push) Failing after 1m30s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 17:40:04 +00:00
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
Snider
e546fa438e chore: go mod tidy
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 1m1s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 17:25:29 +00:00
Snider
7d188ae056 fix: use go-i18n root package, add to go.mod
Some checks failed
Security Scan / security (push) Successful in 7s
Test / test (push) Has been cancelled
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 17:25:20 +00:00
Snider
84ce94b713 feat: add core-php binary, fix imports to use core/cli
Some checks failed
Security Scan / security (push) Successful in 9s
Test / test (push) Failing after 25s
- Create cmd/core-php/main.go standalone binary entry point
- Add FrankenPHP serve:embedded and exec commands (CGO build-tagged)
- Replace all cobra imports with core/cli re-exports
- Replace core/go/pkg/cli with core/cli/pkg/cli
- Replace core/go/pkg/i18n with core/go-i18n/pkg/i18n
- Add core/go and core/go-i18n as go.mod dependencies

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 17:22:10 +00:00
Snider
d2081d91e7 feat: merge core/php CLI commands into go-php
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 26s
Combines FrankenPHP handler package with PHP dev CLI commands
(build, deploy, QA, dev server, etc) from core/php. This frees
the core/php namespace for the Laravel PHP framework rename.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-04 17:12:52 +00:00
Claude
89e91aa9a9
ci: add Forgejo Actions test and security scan workflows
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 12m16s
Uses reusable workflows from core/go-devops for Go testing
(with race detector and coverage) and security scanning
(govulncheck, gitleaks, trivy).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 03:28:08 +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