Claude 3 Api
Description
Claude 3 API PHP Package: Seamlessly integrate Anthropic's Claude 3 AI into your PHP projects. Features simple chat interface, advanced message handling, vision capabilities, streaming support, and tool usage. Ideal for text processing, image analysis, and complex AI tasks. Fully tested and error-handled.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude 3 API PHP Package
**⚠️ DEPRECATION NOTICE**
**This package is deprecated and no longer maintained.**
Please migrate to the newer [Claude PHP SDK](https://github.com/claude-php/Claude-PHP-SDK), which provides:
- Like-for-like parity with the official Claude Python SDK
- Full support for all Claude API features including:
- Messages API with streaming
- Tool use and function calling
- Prompt caching
- Vision capabilities
- Batch processing (50% cost savings)
- Beta features (extended output, structured outputs, thinking mode)
- Token counting
- Comprehensive documentation and examples
- Active maintenance and updates
- Framework integration guides (Laravel, Symfony)
**Migration Guide:** Visit the [Claude PHP SDK repository](https://github.com/claude-php/Claude-PHP-SDK) for installation instructions and documentation.
A robust PHP package for interacting with Anthropic's Claude 3 API, supporting both text and vision capabilities.
Features
- Easy-to-use interface for sending messages to Claude (default), OpenAI and DeepSeek
- Support for text-based conversations with a simple chat method
- Streaming support for real-time responses
- Vision capabilities - send images along with text prompts (Claude only)
- Tool usage support (Claude only)
- Prompt caching support for improved performance and cost efficiency (Claude only)
- Comprehensive error handling
- Fully tested with PHPUnit
Installation
You can install the package via composer:
composer require claude-php/claude-3-api
Usage
Basic Chat Usage
For simple text-based interactions, you can use the `chat` method:
Basic Chat Usage
For simple text-based interactions, you can use the `chat` method in several ways:
- Send a single string message:
use Claude\Claude3Api\Client;
use Claude\Claude3Api\Config;
// Create a configuration object with your A
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI