Skip to content

DevEx: document phpc run -q/-p web superglobals (#268)#284

Merged
PurHur merged 1 commit into
masterfrom
issue-268-phpc-run-web-flags-help
May 19, 2026
Merged

DevEx: document phpc run -q/-p web superglobals (#268)#284
PurHur merged 1 commit into
masterfrom
issue-268-phpc-run-web-flags-help

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 19, 2026

Summary

  • Extend phpc run help with -q / -p CGI-style superglobal flags (passthrough to bin/vm.php).
  • README quick start: run examples/001-SimpleWeb without phpc serve.
  • PhpcCliTest: help mentions -q/$_GET; integration test runs 001-SimpleWeb with -q 'name=Dev'.

Closes #268.

Test plan

  • docker (tar pipe): ./phpc run -q 'name=Dev' examples/001-SimpleWeb/example.php → output contains Hello Dev
  • ./script/docker-ci-local.sh --filter PhpcCliTest → OK (2 tests)

Made with Cursor

Contributors can run examples/001-SimpleWeb without phpc serve; help and
PhpcCliTest assert the existing vm.php passthrough.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 6dd6cfd into master May 19, 2026
1 check failed
@PurHur PurHur deleted the issue-268-phpc-run-web-flags-help branch May 19, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DevEx: phpc run — document -q / -p web superglobals in CLI help

1 participant