Download the PHP package nunodonato/anthropic-php without Composer
On this page you can find all versions of the php package nunodonato/anthropic-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nunodonato/anthropic-php
More information about nunodonato/anthropic-php
Files in nunodonato/anthropic-php
Download nunodonato/anthropic-php
More information about nunodonato/anthropic-php
Files in nunodonato/anthropic-php
Vendor nunodonato
Package anthropic-php
Short Description A PHP client for the Anthropic API
License MIT
Package anthropic-php
Short Description A PHP client for the Anthropic API
License MIT
Please rate this library. Is it a good library?
Informations about the package anthropic-php
A simple PHP library to connect to Anthropic APIs (Claude).
I created this package to fulfill my own needs on my AI projects. I am aware that there are other similar packages, but either they didn't have all the required features or I just didn't like the implementation and usage.
Features
- Messages API
- Support multi-content messages (Vision)
- Tool usage (beta)
- Completion API (legacy)
- Prompt caching (system message only, for now)
- Helps you build and validate messages/tools data structures before sending to the API
Roadmap
- Streaming
Installation
composer require nunodonato/anthropic-php
Usage
More soon.
Instantiate the client
Messages API usage
Available models
All versions of anthropic-php with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/http Version ^10.0|^11.0
phpunit/phpunit Version ^10.0|^11.1
ext-fileinfo Version *
illuminate/http Version ^10.0|^11.0
phpunit/phpunit Version ^10.0|^11.1
ext-fileinfo Version *
The package nunodonato/anthropic-php contains the following files
Loading the files please wait ....