Skip to content

Add README documentation for all 18 components#234

Merged
adamziel merged 3 commits intotrunkfrom
adamziel/component-readmes
Apr 10, 2026
Merged

Add README documentation for all 18 components#234
adamziel merged 3 commits intotrunkfrom
adamziel/component-readmes

Conversation

@adamziel
Copy link
Copy Markdown
Collaborator

Summary

Every component in the toolkit now ships a README that follows the same structure used by well-known PHP libraries like Guzzle, Flysystem, and Symfony Console:

  • Description — what the component does and why you'd reach for it
  • Installation — the composer require one-liner
  • Quick Start — a minimal working example you can copy-paste
  • Usage — subsections for each major feature, with real code examples derived from the component's own test suite
  • API Reference — tables of key classes and methods
  • Requirements — PHP version and dependency info

The 16 components that had no README now have one. The 2 that already had one (HttpClient, CORSProxy) have been rewritten with the same depth and structure.

All examples use PHP 7.2-compatible syntax and follow WordPress coding style (spaces inside parentheses, $snake_case variables, snake_case() methods).

Test plan

  • Verify each README renders correctly on GitHub
  • Spot-check code examples against actual component APIs
  • Confirm no PHP 7.2+ incompatible syntax in examples

Every component in the toolkit now has a README with a clear description,
installation instructions, quick start example, detailed usage sections
with real code examples derived from each component's test suite, an API
reference table, and requirements. The two components that already had
READMEs (HttpClient, CORSProxy) have been rewritten with the same
structure and depth as the rest.
BlockParser, HTML, Encoding, and Polyfill are extracted from WordPress
core. XML follows the same architecture. Each now has an Attribution
section crediting the original WordPress core work.
@adamziel adamziel merged commit 355af4f into trunk Apr 10, 2026
21 of 22 checks passed
@adamziel adamziel deleted the adamziel/component-readmes branch April 10, 2026 20:16
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