Runnable Snippets
These PHP files run offline through composer docs:examples. Each one loads the repository's Composer autoloader and uses a fake or injected Guzzle MockHandler response instead of making a real network request.
quickstart.php— a basic fake requestrequest-options.php— per-request parameters and a JSON bodyclient-configuration.php— shared client defaultsauthentication.php— bearer token headermiddleware.php— request header middlewarecache.php— a cached response using an injected Guzzle handlerasync.phpandcancellation.php— Matrix promise behaviorstreaming.php— line-by-line stream consumptionvalidation.php— optional JSON Schema validation of a fake response
Homepage examples
The homepage displays regions from these same checked files. Autoloading and offline mock setup are omitted from the display; no request is sent by the UI.
homepage-request.php— the hero request and its expected JSON responsehomepage-client.php— shared client defaultshomepage-async.php— explicit async transport with complete request URLs
The example response comes from homepage-response.json, shared between the PHP fixture and the website data loader. Browse the fixture source on GitHub.