cli/pkg/php
Snider ba88455efb feat(php): add --json and --sarif flags to QA commands (#69)
* feat(github): add issue templates and auto-labeler

- Add bug_report.yml and feature_request.yml templates
- Add config.yml for issue creation options
- Add auto-label.yml workflow to label issues based on content

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(php): add --json and --sarif flags to QA commands

Adds machine-readable output support to PHP quality assurance commands:

- test: --json flag for JUnit XML output
- fmt: --json flag for JSON formatted output from Pint
- stan: --json and --sarif flags for PHPStan output
- psalm: --json and --sarif flags for Psalm output
- qa: --json flag for JSON summary output

SARIF output enables integration with GitHub Security tab for
static analysis results.

Closes #51

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(php): address CodeRabbit review feedback

- Guard progress messages when JSON/SARIF output is enabled
- Guard success messages when JSON/SARIF output is enabled
- Guard QA results display when JSON output is enabled
- Rename misleading JSON field to JUnit in TestOptions (outputs JUnit XML)
- Add mutual exclusion validation for --json and --sarif flags
- Remove empty conditional block in auto-label workflow
- Add i18n translation for json_sarif_exclusive error

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(php): additional CodeRabbit fixes

- Rename test --json flag to --junit (outputs JUnit XML, not JSON)
- Add actual JSON marshaling for QA command JSON output
- Add JSON tags to QARunResult and QACheckRunResult structs
- Add i18n translation for junit flag

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 06:32:35 +00:00
..
locales feat(i18n): add RegisterLocales for package locale registration 2026-01-30 20:51:32 +00:00
cmd.go feat(php): add CI/CD pipeline command (#72) 2026-02-01 06:11:00 +00:00
cmd_build.go refactor(php,vm): migrate to cli ANSI styling 2026-01-31 23:54:01 +00:00
cmd_ci.go feat(php): add CI/CD pipeline command (#72) 2026-02-01 06:11:00 +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(php,vm): migrate to cli ANSI styling 2026-01-31 23:54:01 +00:00
cmd_dev.go refactor(php,vm): migrate to cli ANSI styling 2026-01-31 23:54:01 +00:00
cmd_packages.go refactor(php,vm): migrate to cli ANSI styling 2026-01-31 23:54:01 +00:00
cmd_qa_runner.go feat(php): add --json and --sarif flags to QA commands (#69) 2026-02-01 06:32:35 +00:00
cmd_quality.go feat(php): add --json and --sarif flags to QA commands (#69) 2026-02-01 06:32:35 +00:00
container.go fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
container_test.go fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
coolify.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
coolify_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
deploy.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +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 refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +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 refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
packages_test.go fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
php.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
php_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
quality.go feat(php): add --json and --sarif flags to QA commands (#69) 2026-02-01 06:32:35 +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 fix: add Windows compatibility for process management (#58) 2026-02-01 01:56:44 +00:00
services_extended_test.go fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
services_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
services_unix.go fix: add Windows compatibility for process management (#58) 2026-02-01 01:56:44 +00:00
services_windows.go fix: add Windows compatibility for process management (#58) 2026-02-01 01:56:44 +00:00
ssl.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
ssl_extended_test.go fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
ssl_test.go feat(php): implement Laravel development environment support 2026-01-28 19:14:06 +00:00
testing.go feat(php): add --json and --sarif flags to QA commands (#69) 2026-02-01 06:32:35 +00:00
testing_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00