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
