deepseek-php-client  by deepseek-php

PHP SDK for DeepSeek AI API integration

created 7 months ago
433 stars

Top 69.8% on sourcepulse

GitHubView on GitHub
Project Summary

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

Highlighted Details

  • Fluent builder pattern for intuitive request construction.
  • Support for multiple DeepSeek models (e.g., Coder, Chat, Reasoner).
  • Built-in support for streaming responses.
  • Integrates with Guzzle (default) and Symfony HTTP clients.
  • Framework-specific packages available for Laravel.

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.

Health Check
Last commit

2 weeks ago

Responsiveness

1 week

Pull Requests (30d)
3
Issues (30d)
3
Star History
27 stars in the last 90 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

aisuite by andrewyng

0.2%
12k
Unified interface for multiple generative AI providers
created 1 year ago
updated 4 days ago
Feedback? Help us improve.