PHPackages                             claude-php/claude-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. claude-php/claude-php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

claude-php/claude-php-sdk
=========================

A universal, framework-agnostic PHP SDK for the Anthropic Claude API with PSR compliance

0.8.0(1mo ago)14650.3k↓46.3%82MITPHPPHP ^8.1

Since Nov 17Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/claude-php/Claude-PHP-SDK)[ Packagist](https://packagist.org/packages/claude-php/claude-php-sdk)[ RSS](/packages/claude-php-claude-php-sdk/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (6)Dependencies (24)Versions (14)Used By (2)

Claude PHP SDK
==============

[](#claude-php-sdk)

[![GitHub Stars](https://camo.githubusercontent.com/3c744062a7c79e12e03e4a9f582148f573130f6883a5ee1721f9a5882c8ee8ad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f636c617564652d7068702f436c617564652d5048502d53444b3f7374796c653d666c61742d737175617265)](https://github.com/claude-php/Claude-PHP-SDK/stargazers)

If this saves you time, a star on GitHub helps other PHP developers find it.

The unofficial PHP client for the [Anthropic Claude API](https://docs.anthropic.com/en/api/overview). Requires PHP 8.1+, Composer, and an [Anthropic API key](https://console.anthropic.com/).

```
composer require claude-php/claude-php-sdk
```

---

Quick start
-----------

[](#quick-start)

```
