Get expert guidance in a few days with a Laravel code review

Deepseek Php Client

Deepseek Php Client stats

Downloads
83
Stars
20
Open Issues
0
Forks
3

View on GitHub →

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.

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 photo

Makes deepseek AI development in PHP more productive and enjoyable.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


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
Get expert guidance in a few days with a Laravel code review logo

Get expert guidance in a few days with a Laravel code review

Expert code review! Get clear, practical feedback from two Laravel devs with 10+ years of experience helping teams build better apps.

Get expert guidance in a few days with a Laravel code review
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce