deepseek-php-client  by deepseek-php

PHP SDK for DeepSeek AI API integration

Created 8 months ago
438 stars

Top 68.2% 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 months ago

Responsiveness

1 week

Pull Requests (30d)
0
Issues (30d)
0
Star History
4 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.