🚀 Community-Driven PHP SDK for DeepSeek AI API Integration
- ✨ Features
- 📦 Installation
- 🚀 Quick Start
- 🆕 Migration Guide
- 📝 Changelog
- 🧪 Testing
- 🔒 Security
- 🤝 Contributors
- 📄 License
- Seamless API Integration: PHP-first interface for DeepSeek's AI capabilities
- Fluent Builder Pattern: Chainable methods for intuitive request building
- Enterprise Ready: PSR-18 compliant HTTP client integration
- Model Flexibility: Support for multiple DeepSeek models (Coder, Chat, etc.)
- Streaming Ready: Built-in support for real-time response handling
- Framework Friendly: Laravel & Symfony packages available
Require the package via Composer:
composer require deepseek-php/deepseek-php-clientRequirements:
- PHP 8.1+
Get started with just two lines of code:
use DeepSeek\DeepSeekClient; $response = DeepSeekClient::build('your-api-key') ->query('Explain quantum computing in simple terms') ->run(); echo $response; // "Quantum computing uses qubits to..."📌 Defaults used:
- Model:
deepseek-chat - Temperature: 0.8
use DeepSeek\DeepSeekClient; use DeepSeek\Enums\Models; $response = DeepSeekClient::build('your-api-key') ->withBaseUrl('https://api.deepseek.com/v2') ->withModel(Models::CODER) ->withTemperature(1.2) ->run(); echo 'API Response:'.$response;Upgrading from v1.x? Check our comprehensive Migration Guide for breaking changes and upgrade instructions.
Detailed release notes available in CHANGELOG.md
composer testTest coverage coming in v2.1.
Report Vulnerabilities: to omaralwi2010@gmail.com
A huge thank you to these amazing people who have contributed to this project! 🎉💖
| Omar AlAlwi 🏆 Creator | Ayman Alhattami ⭐ Contributor | Mohammad Asaad ⭐ Contributor | Opada Alzaiede ⭐ Contributor | Hisham Abdullah ⭐ Contributor |
Want to contribute? Check out the contributing guidelines and submit a pull request! 🚀
This package is open-source software licensed under the MIT License.