PHPackages                             lanos/anthropic - 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. lanos/anthropic

ActiveLibrary[API Development](/categories/api)

lanos/anthropic
===============

PHP client for the Anthropic API

v1.0.0(1y ago)13MITPHPPHP ^8.1

Since Dec 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/l4nos/anthropic-php-client)[ Packagist](https://packagist.org/packages/lanos/anthropic)[ RSS](/packages/lanos-anthropic/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Anthropic PHP Client
====================

[](#anthropic-php-client)

A PHP client for the Anthropic API.

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

[](#installation)

```
composer require lanos/anthropic
```

Usage
-----

[](#usage)

```
use Lanos\Anthropic\Anthropic;

$anthropic = new Anthropic('your-api-key');

// Create a message
$response = $anthropic->messages()->create([
    'model' => 'claude-3-opus-20240229',
    'messages' => [
        ['role' => 'user', 'content' => 'Hello, Claude!']
    ],
    'max_tokens' => 1024
]);

// List available models
$models = $anthropic->models()->list();

// Create a message batch
$batch = $anthropic->messageBatches()->create([
    'model' => 'claude-3-opus-20240229',
    'messages' => [
        ['role' => 'user', 'content' => 'Hello!'],
        ['role' => 'user', 'content' => 'How are you?']
    ]
]);
```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

600d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31861108?v=4)[Rob](/maintainers/l4nos)[@l4nos](https://github.com/l4nos)

---

Top Contributors

[![rl-carno](https://avatars.githubusercontent.com/u/132678025?v=4)](https://github.com/rl-carno "rl-carno (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lanos-anthropic/health.svg)

```
[![Health](https://phpackages.com/badges/lanos-anthropic/health.svg)](https://phpackages.com/packages/lanos-anthropic)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
