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.
Download llm-speak/anthropic-claude
More information about llm-speak/anthropic-claude
Files in llm-speak/anthropic-claude
Package anthropic-claude
Short Description A Laravel package for integrating Anthropic Claude into LLMSpeak
License MIT
Informations about the package anthropic-claude
LLMSpeak Anthropic Claude
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
- Usage
- Basic Request
- Fluent Request Building
- System Instructions
- Tool Calling
- Streaming Responses
- Advanced Configuration
- Response Handling
- Testing
- Changelog
- Contributing
- Security
- Credits
- License
Features
- 🚀 Laravel Native: Full Laravel integration with automatic service discovery
- 🔧 Fluent Interface: Expressive request builders with method chaining
- 📊 Laravel Data: Powered by Spatie Laravel Data for robust data validation
- 🛠️ Tool Support: Complete function calling capabilities
- 💨 Streaming: Support for real-time streaming responses
- 🎯 Type Safety: Full PHP 8.2+ type declarations and IDE support
- 🔐 Secure: Built-in API key management and request validation
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