Skip to content

feat(codegen): generate validated PHP code samples - #101

Merged
matoous merged 1 commit into
mainfrom
agent/code-sample-generator
Aug 2, 2026
Merged

feat(codegen): generate validated PHP code samples#101
matoous merged 1 commit into
mainfrom
agent/code-sample-generator

Conversation

@matoous

@matoous matoous commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What

  • Add a deterministic, versioned JSON catalog generated from the existing Go codegen model.
  • Emit 47 complete PHP programs, including nine named OpenAPI request examples.
  • Add just generate-codesamples, documentation, CI syntax validation, and release-tag synchronization to sumup-developer/src/codesamples/php.json.

Why

The developer portal needs accurate, SDK-native PHP samples generated from the same OpenAPI model as the client, without publishing a runtime package.

Validation

  • go test -race ./...
  • go vet ./...
  • codegen lint and go mod tidy -diff
  • PHP syntax validation for all generated samples
  • PHP unit tests (35 tests, 119 assertions)
  • PHP CS Fixer
  • actionlint

@matoous matoous self-assigned this Aug 2, 2026
@matoous
matoous force-pushed the agent/code-sample-generator branch from 8088301 to cd4276c Compare August 2, 2026 17:58
Generate deterministic, versioned PHP sample catalogs from the SDK codegen model. Validate every generated program, expose a just recipe, and sync release-tag output to the developer portal.
@matoous
matoous force-pushed the agent/code-sample-generator branch from cd4276c to 9321f27 Compare August 2, 2026 19:30
@matoous
matoous marked this pull request as ready for review August 2, 2026 19:31
@matoous
matoous merged commit fc227c8 into main Aug 2, 2026
14 checks passed
@matoous
matoous deleted the agent/code-sample-generator branch August 2, 2026 19:34
@github-actions github-actions Bot mentioned this pull request Jul 27, 2026
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.

1 participant