A seamless Laravel integration for the Deepseek PHP client, enabling effortless interaction with the Deepseek API in your Laravel applications.
deepseek-php/deepseek-laravel is a Laravel package for a seamless laravel integration for the deepseek php client, enabling effortless interaction with the deepseek api in your laravel applications..
It currently has 402 GitHub stars and 43.310 downloads on Packagist (latest version 2.0.2).
Install it with composer require deepseek-php/deepseek-laravel.
Discover more Laravel packages by deepseek-php
or browse all Laravel packages to compare alternatives.
Last updated
Laravel wrapper for Deepseek PHP client to seamless deepseek AI API integration with Laravel applications.
You can install the package via composer:
composer require deepseek-php/deepseek-laravel
php artisan vendor:publish --tag=deepseek
then add token to .env file
DEEPSEEK_API_KEY="your_api_key"
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
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);
Tests will come soon
Thanks to these wonderful people for contributing to this project! π
|
Omar AlAlwi π Creator |
Assem Alwaseai π» Contributor |
Faisal π» Contributor |
Want to contribute? Check out the contributing guidelines and submit a pull request! π
Please see CHANGELOG for more information on what has changed recently.
Click the button bellow or join here to be part of our growing community!
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.