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 1mo 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

27

—

LowBetter than 49% of packages

Maintenance40

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06c9e88990d6fc4ceeca54935392f46b9cec2ded8c4a858100b05f0a4d8e4e69?d=identicon)[l4nos](/maintainers/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

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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