PHPackages                             neosoftware/anthropic-claude-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. [API Development](/categories/api)
4. /
5. neosoftware/anthropic-claude-sdk

ActiveLibrary[API Development](/categories/api)

neosoftware/anthropic-claude-sdk
================================

PHP SDK для Claude Agent (Claude Code). Порт пакета @anthropic-ai/claude-agent-sdk (TypeScript).

00PHP

Since Jun 5Pushed 1mo agoCompare

[ Source](https://github.com/NEOSoftWare/anthropic-claude-sdk)[ Packagist](https://packagist.org/packages/neosoftware/anthropic-claude-sdk)[ RSS](/packages/neosoftware-anthropic-claude-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Anthropic Claude Agent SDK for PHP
==================================

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

A PHP 8.2 SDK for working with [Claude Agent (Claude Code)](https://claude.ai/download).
A port of the [`@anthropic-ai/claude-agent-sdk`](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk) package (TypeScript).

Requirements
------------

[](#requirements)

- PHP **8.2+**
- Composer

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

[](#installation)

```
composer require neosoftware/anthropic-claude-sdk
```

### Claude binary

[](#claude-binary)

The SDK runs `claude` (Claude Code CLI) as a subprocess. Specify the path to it in one of the following ways:

**Via `QueryOptions`** — explicitly for a specific agent:

```
new QueryOptions(claudePathOverride: '/usr/local/bin/claude')
```

**Via an environment variable** — globally for the entire application:

```
CLAUDE_PATH=/usr/local/bin/claude php artisan ...
```

**Installation into `vendor/bin`** — convenient for containers and servers where Claude Code is not installed globally. The command downloads the binary for your platform from npm and adds the `vendor/bin/claude` symlink:

```
vendor/bin/install-claude
```

`allow-plugins` permissions are not required.

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

[](#quick-start)

```
