Skip to content

Docs: examples/README run matrix and phpc-first quick start (#262)#379

Merged
PurHur merged 1 commit into
masterfrom
issue-262-examples-readme
May 20, 2026
Merged

Docs: examples/README run matrix and phpc-first quick start (#262)#379
PurHur merged 1 commit into
masterfrom
issue-262-examples-readme

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 20, 2026

Summary

Closes #262.

  • Replace benchmark-only intro with phpc-first quick start (./phpc lint, ./phpc run, ./phpc serve, phpc build / phpc serve --aot)
  • Add a run matrix table for 000-HelloWorld, 001-SimpleWeb, and 002-StaticWeb with per-folder command sections
  • Link test/unit/ExamplesCompileTest.php, make web-smoke, and Docker CI (make test-docker / script/docker-ci-local.sh)
  • Extend ExamplesReadmeTest to guard the run matrix and phpc-first docs

Test plan

  • php vendor/bin/phpunit --filter ExamplesReadme (Docker tar pipe)
  • php vendor/bin/phpunit --filter ExamplesCompile (Docker)
  • ./script/web-smoke.sh (Docker)
  • ./phpc lint examples/001-SimpleWeb/example.php (Docker)

Made with Cursor

Replace benchmark-only intro with per-example VM/JIT/AOT commands, a run
matrix table, CI links, and PHPUnit guards so contributors can run all
shipped examples without reading the root README first.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 0622f9e into master May 20, 2026
@PurHur PurHur deleted the issue-262-examples-readme branch May 20, 2026 16:22
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.

Docs: examples/README — phpc/vm/aot run matrix per example folder

1 participant