PHP SDK for DeepSeek AI API integration
Top 69.8% on sourcepulse
This PHP client provides a streamlined interface for interacting with the DeepSeek AI API, targeting PHP developers seeking to integrate advanced AI capabilities into their applications. It offers a fluent builder pattern for intuitive request construction, supports multiple DeepSeek models, and includes built-in streaming capabilities for real-time responses.
How It Works
The client leverages a fluent builder pattern, allowing developers to chain method calls to construct API requests. It defaults to the deepseek-chat
model with a temperature of 0.8 but allows customization of models, temperature, and other parameters. The library is PSR-18 compliant and supports both Guzzle (default) and Symfony HTTP clients, ensuring broad compatibility with various PHP environments and frameworks.
Quick Start & Requirements
composer require deepseek-php/deepseek-php-client
Highlighted Details
Maintenance & Community
The project is community-maintained with a Telegram community for discussion and support. Key contributors are listed, and a security contact is provided.
Licensing & Compatibility
Licensed under the MIT License, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
Framework integration for Symfony is mentioned but may require separate package installation. Test coverage is noted as coming in a future release.
2 weeks ago
1 week