Skip to content

Laravel wrapper for Deepseek PHP client, to seamless deepseek API integration with laravel applications.

License

Notifications You must be signed in to change notification settings

deepseek-php/deepseek-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2423306 Β· Feb 19, 2025

History

28 Commits
Jan 31, 2025
Jan 2, 2025
Feb 15, 2025
Feb 15, 2025
Jan 2, 2025
Jan 2, 2025
Jan 2, 2025
Feb 19, 2025
Feb 16, 2025

Repository files navigation

Deepseek Laravel

Laravel wrapper for Deepseek PHP client to seamless deepseek AI API integration with Laravel applications.

Table of Contents

Installation

You can install the package via composer:

composer require deepseek-php/deepseek-laravel

Publishing Configuration File

php artisan vendor:publish --tag=deepseek

then add token to .env file

DEEPSEEK_API_KEY="your_api_key"

Usage

Basic Usage

use DeepSeekClient;

$deepseek = app(DeepSeekClient::class);
$response = $deepseek->query('Hello deepseek, I am Laravel Framework , how are you Today ^_^ ?')->run();
print_r("deepseek API response : " . $response);

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

Advanced Usage

use DeepSeekClient;

$deepseek = app(DeepSeekClient::class);

// Another way, with customization
$response = $deepseek
    ->query('Hello deepseek, how are you ?', 'system')
    ->query('Hello deepseek, my name is PHP ', 'user')
    ->withModel("deepseek-chat")
    ->setTemperature(1.5)
    ->run();

print_r("deepseek API response : " . $response);

Testing

Tests will come soon

Contributors ✨

Thanks to these wonderful people for contributing to this project! πŸ’–

Omar AlAlwi
Omar AlAlwi

πŸ† Creator
Asim Al-Wasai
Assem Alwaseai

πŸ’» Contributor
Faisal
Faisal

πŸ’» Contributor

Want to contribute? Check out the contributing guidelines and submit a pull request! πŸš€

Changelog

Please see CHANGELOG for more information on what has changed recently.


🐘✨ DeepSeek PHP Community ✨🐘

Click the button bellow or join here to be part of our growing community!

Join Telegram

Channel Structure πŸ—οΈ

  • πŸ—¨οΈ General - Daily chatter
  • πŸ’‘ Ideas & Suggestions - Shape the community's future
  • πŸ“’ Announcements & News - Official updates & news
  • πŸš€ Releases & Updates - Version tracking & migration support
  • 🐞 Issues & Bug Reports - Collective problem-solving
  • 🀝 Pull Requests - Code collaboration & reviews

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.