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

ActiveLibrary[API Development](/categories/api)

llmesh/anthropic
================

Anthropic provider for LLMesh AI library

01PHP

Since Jun 7Pushed 1mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

LLMesh Anthropic Provider
=========================

[](#llmesh-anthropic-provider)

[![Latest Stable Version](https://camo.githubusercontent.com/1a12e613524e861afd0286ba3c6a9938dbddb85c6d2cbe7245b07ddac2075bb7/68747470733a2f2f706f7365722e707567782e6f72672f6c6c6d6573682f616e7468726f7069632f76)](https://packagist.org/packages/llmesh/anthropic)[![PHP Version](https://camo.githubusercontent.com/acffb6ae1962992d26e4466782832787e79504a6250f80d732c4283458b9f497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c75652e737667)](https://packagist.org/packages/llmesh/anthropic)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

An Anthropic provider adapter for the [LLMesh Core](https://github.com/fyunusa/llmesh) framework, allowing you to use Anthropic Claude models seamlessly with a unified API.

---

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

[](#installation)

Install via Composer:

```
composer require llmesh/anthropic
```

---

Quick Start
-----------

[](#quick-start)

```
use LLMesh\Anthropic\AnthropicProvider;
use LLMesh\Core\LLMesh;
use LLMesh\Core\Generators\GenerateTextOptions;

$provider = new AnthropicProvider(getenv('ANTHROPIC_API_KEY'));

// Simple Text Generation
$response = LLMesh::generateText(
    $provider,
    GenerateTextOptions::make()->withPrompt('Say hello!')
);

echo $response->getText();
```

---

Supported Capabilities
----------------------

[](#supported-capabilities)

- **Chat Completions**: standard, streaming, and tool calls using models like `claude-sonnet-4-5`, `claude-opus-4-5`, and `claude-haiku-3-5`.
- **Structured Outputs**: validated object generation via native tool mode.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance60

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d27bbaedbcc98c183b40947c384ccd1dbc906ea58a4f359eff58165b98393f39?d=identicon)[fyunusa](/maintainers/fyunusa)

---

Top Contributors

[![fyunusa](https://avatars.githubusercontent.com/u/55334829?v=4)](https://github.com/fyunusa "fyunusa (6 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k18](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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