go/pkg/php
Snider 9931593f9d refactor(cli): move commands from cmd/ to pkg/ with self-registration
Implements defence in depth through build variants - only compiled code
exists in the binary. Commands now self-register via cli.RegisterCommands()
in their init() functions, mirroring the i18n.RegisterLocales() pattern.

Structure changes:
- cmd/{ai,build,ci,dev,docs,doctor,go,php,pkg,sdk,setup,test,vm}/ → pkg/*/cmd_*.go
- cmd/core_dev.go, cmd/core_ci.go → cmd/variants/{full,ci,php,minimal}.go
- Added pkg/cli/commands.go with RegisterCommands API
- Updated pkg/cli/runtime.go to attach registered commands

Build variants:
- go build           → full (21MB, all 13 command groups)
- go build -tags ci  → ci (18MB, build/ci/sdk/doctor)
- go build -tags php → php (14MB, php/doctor)
- go build -tags minimal → minimal (11MB, doctor only)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 21:55:55 +00:00
..
locales feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
cmd.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_build.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_commands.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_deploy.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_dev.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_packages.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_qa_runner.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_quality.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
container.go feat(php): add container build support (Docker + LinuxKit) 2026-01-28 19:24:11 +00:00
container_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
coolify.go feat(php): add Coolify deployment integration 2026-01-28 19:39:04 +00:00
coolify_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
deploy.go feat(php): add Coolify deployment integration 2026-01-28 19:39:04 +00:00
deploy_internal_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
deploy_test.go feat(php): add Coolify deployment integration 2026-01-28 19:39:04 +00:00
detect.go feat(php): implement Laravel development environment support 2026-01-28 19:14:06 +00:00
detect_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
dockerfile.go feat(php): add container build support (Docker + LinuxKit) 2026-01-28 19:24:11 +00:00
dockerfile_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
i18n.go feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
packages.go feat(php): add package management for local development 2026-01-28 19:33:55 +00:00
packages_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
php.go feat(php): implement Laravel development environment support 2026-01-28 19:14:06 +00:00
php_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
quality.go refactor(php): rename analyse to stan 2026-01-30 20:06:51 +00:00
quality_extended_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
quality_test.go refactor(php): rename analyse to stan 2026-01-30 20:06:51 +00:00
services.go feat(php): implement Laravel development environment support 2026-01-28 19:14:06 +00:00
services_extended_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
services_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
ssl.go feat(php): implement Laravel development environment support 2026-01-28 19:14:06 +00:00
ssl_extended_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
ssl_test.go feat(php): implement Laravel development environment support 2026-01-28 19:14:06 +00:00
testing.go fix(php): set XDEBUG_MODE=coverage for PHPUnit 11 compatibility 2026-01-30 00:28:47 +00:00
testing_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00