Package

Deepseek Php Client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

Package

deepseek-php/deepseek-php-client

View on GitHub →

Gpdf

Deepseek PHP Client

Table of Contents


Overview

Deepseek PHP Client is a robust and community-driven PHP client library for seamless integration with the Deepseek API.

Key Features

  • Easy Integration: Simplifies interaction with the Deepseek API using a PHP client.
  • Method Chaining: Supports fluent method chaining for building requests.
  • Customizable: Allows setting different models, query roles, and streaming options.
  • PSR-18 Compliance: Utilizes PSR-18 HTTP client for making API requests.

Installation

You can install the package via Composer:

composer require deepseek-php/deepseek-php-client

Ensure your project meets the following requirements:

  • PHP 8.1 or later

Quick Start Guide

Basic Usage

use DeepseekPhp\DeepseekClient;

$apiKey = 'your-api-key';

$response = DeepseekClient::build($apiKey)
    ->query('Hello Deepseek, how are you today?')
    ->run();

echo 'API Response:'.$response;

Note: in easy mode it will take defaults for all configs Check Default Values

Advanced Usage

use DeepseekPhp\DeepseekClient;
use DeepseekPhp\Enums\Queries\QueryRoles;
use DeepseekPhp\Enums\Models;

$apiKey = 'your-api-key';

$response = DeepseekClient::build($apiKey, 'https://api.deepseek.com/v2', 500)
    ->query('System setup query', 'system')
    ->query('User input message', 'user')
    ->withModel(Models::CODER->value)
    ->run();

echo 'API Response:'.$response;

Use With Frameworks

Laravel Deepseek Package


Testing

tests will come soon .

Changelog

See CHANGELOG for recent changes.

Contributors ✨

Thanks to these wonderful people for contributing to this project! 💖

Omar AlAlwi
Omar AlAlwi

🏆 Creator
ayman alhattami
ayman alhattami

🏆 Contributer

Want to contribute? Check out the contributing guidelines and submit a pull request! 🚀

Security

If you discover any security-related issues, please email creator : omaralwi2010@gmail.com.

License

The MIT License (MIT). See LICENSE for more information.

Deepseek Php Deepseek Php Client Related Articles

A Laravel Package to Use the Deepseek API With V3 AI Models image

A Laravel Package to Use the Deepseek API With V3 AI Models

Read article
5 Tips and Tricks for working with the Laravel HTTP Client image

5 Tips and Tricks for working with the Laravel HTTP Client

Read article
Building Flexible Axios Clients image

Building Flexible Axios Clients

Read article
Connecting Laravel Socialite with Google Client PHP Library image

Connecting Laravel Socialite with Google Client PHP Library

Read article
OpenAI PHP Client image

OpenAI PHP Client

Read article
Getting to Know the Laravel HTTP Client image

Getting to Know the Laravel HTTP Client

Read article

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

NativePHP

The fastest way to build fully native apps for any platform (with AI or not)

NativePHP

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift