Download the PHP package llm-speak/anthropic-claude without Composer

On this page you can find all versions of the php package llm-speak/anthropic-claude. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package anthropic-claude

LLMSpeak Anthropic Claude

License: MIT PHP Laravel Total Downloads

LLMSpeak Anthropic Claude is a Laravel package that provides a fluent, Laravel-native interface for integrating with Anthropic's Claude AI models. Built as part of the LLMSpeak ecosystem, it offers seamless integration with Laravel applications through automatic service discovery and expressive request builders.

Note: This package is part of the larger LLMSpeak ecosystem. For universal provider switching and standardized interfaces, check out the LLMSpeak Core package.

Table of Contents

Features

Get Started

Requires PHP 8.2+ and Laravel 10.x/11.x/12.x

Install the package via Composer:

The package will automatically register itself via Laravel's package discovery.

Environment Configuration

Add your Anthropic API key to your .env file:

Note: The package currently uses Anthropic API version 2023-06-01 (hardcoded).

Usage

Basic Request

The simplest way to send a message to Claude:

Fluent Request Building

Build complex requests using the fluent interface:

Batch Configuration

Set multiple parameters at once:

System Instructions

Claude supports rich system instructions for context and behavior:

Tool Calling

Enable Claude to use external functions and tools:

Streaming Responses

Enable real-time streaming for long responses:

Advanced Configuration

Configure advanced parameters for fine-tuned control:

Response Handling

Access rich response data:

Testing

The package provides testing utilities for mocking Anthropic responses:

Credits

License

The MIT License (MIT). Please see License File for more information.


Part of the LLMSpeak Ecosystem - Made with ADHD by Project Saturn Studios


All versions of anthropic-claude with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package llm-speak/anthropic-claude contains the following files

Loading the files please wait ...