PHPackages                             anthropic-ai/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. anthropic-ai/sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

anthropic-ai/sdk
================

Anthropic PHP SDK

v0.8.0(2mo ago)129134.7k↑21.1%28[4 issues](https://github.com/anthropics/anthropic-sdk-php/issues)[5 PRs](https://github.com/anthropics/anthropic-sdk-php/pulls)4MITPHPPHP ^8.1CI passing

Since Aug 27Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/anthropics/anthropic-sdk-php)[ Packagist](https://packagist.org/packages/anthropic-ai/sdk)[ RSS](/packages/anthropic-ai-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (32)Versions (14)Used By (4)

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

[](#claude-sdk-for-php)

[![Packagist Version](https://camo.githubusercontent.com/6c530dfc1f03cc471f78d7d3e42922c3756d4e83f70ef7c7413cb1b6756251cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e7468726f7069632d61692f73646b2e737667)](https://packagist.org/packages/anthropic-ai/sdk)

The Claude SDK for PHP provides access to the [Claude API](https://docs.anthropic.com/en/api/) from PHP applications.

Documentation
-------------

[](#documentation)

Full documentation is available at **[platform.claude.com/docs/en/api/sdks/php](https://platform.claude.com/docs/en/api/sdks/php)**.

Installation
------------

[](#installation)

```
composer require "anthropic-ai/sdk:^0.9.0"
```

Getting started
---------------

[](#getting-started)

```
