{"repo":"mozex/anthropic-php","free":true,"listed":false,"github":"https://github.com/mozex/anthropic-php","clone":"git clone https://github.com/mozex/anthropic-php.git","description":"PHP client for the Anthropic API: messages, streaming, tool use, thinking, web search, code execution, batches, and more.","language":"PHP","stars":48,"topics":["anthropic","php","sdk","ai","api-client","chatbot","claude","generative-ai","llm","streaming"],"license":"MIT","category":"ai-agents","readme_excerpt":"Anthropic PHP A community-maintained PHP SDK for the Anthropic API. Send messages, stream responses, call tools, use extended thinking, search the web, execute code, process batches, and more. Works with any PSR-18 HTTP client. Read the full documentation at mozex.dev : searchable docs, version requirements, detailed changelog, and more. Using Laravel? Check out Anthropic Laravel, which wraps this SDK with service container integration, config-based setup, and a facade. Table of Contents - Introduction - Usage - Messages - Streaming - Tool Use - Thinking - Server Tools - Citations - Token Counting - Models - Batches - Files - Completions - Reference - Configuration - Error Handling - Meta Information - Testing Support This Project I maintain this package along with several other open-source PHP packages used by thousands of developers every day. If my packages save you time or help your business, consider sponsoring my work on GitHub Sponsors . Your support lets me keep these packages updated, respond to issues quickly, and ship new features. Business sponsors get logo placement in package READMEs. See sponsorship tiers → Why This Package Built-in test client. Swap Anthropic\\Client with ClientFake in your tests, queue fake responses, and assert exactly which requests were sent. No HTTP mocking libraries needed, no test server to run. See the testing docs → Forward-compatible. Parameters pass through to the API as-is. When Anthropic ships a new feature (a new tool type, a new ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mozex","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mozex/anthropic-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}