https://github.com/deepseek-php/deepseek-laravel
Laravel wrapper for Deepseek PHP client, to seamless deepseek API integration with laravel applications.
https://github.com/deepseek-php/deepseek-laravel
chatgpt deepseek-chat deepseek-coder deepseek-integration deepseek-laravel deepseek-math deepseek-php deepseek-php-client deepseek-php-library deepseek-r1 deepseek-r1-zero laravel-ai openai openai-integration
Last synced: 25 days ago
JSON representation
Laravel wrapper for Deepseek PHP client, to seamless deepseek API integration with laravel applications.
- Host: GitHub
- URL: https://github.com/deepseek-php/deepseek-laravel
- Owner: deepseek-php
- License: mit
- Created: 2025-01-02T15:48:15.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-02-19T16:48:37.000Z (4 months ago)
- Last Synced: 2025-04-21T18:24:26.958Z (about 2 months ago)
- Topics: chatgpt, deepseek-chat, deepseek-coder, deepseek-integration, deepseek-laravel, deepseek-math, deepseek-php, deepseek-php-client, deepseek-php-library, deepseek-r1, deepseek-r1-zero, laravel-ai, openai, openai-integration
- Language: PHP
- Homepage:
- Size: 284 KB
- Stars: 368
- Watchers: 9
- Forks: 51
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Deepseek Laravel
Laravel wrapper for **[Deepseek PHP client](https://github.com/deepseek-php/deepseek-php-client)** to seamless [deepseek AI](https://www.deepseek.com) API integration with Laravel applications.
## Table of Contents
- [Installation](#installation)
- [Publishing Configuration File](#publishing-configuration-file)
- [Usage](#usage)
- [Basic Usage](#basic-usage)
- [Advanced Usage](#advanced-usage)
- [Testing](#testing)
- [Contributors](#contributors-)
- [Changelog](#changelog)
- [Security](#security)
- [License](#license)## Installation
You can install the package via composer:
```bash
composer require deepseek-php/deepseek-laravel
```### Publishing Configuration File
```bash
php artisan vendor:publish --tag=deepseek
```
then add token to `.env` file
```php
DEEPSEEK_API_KEY="your_api_key"
```## Usage
### Basic Usage
```php
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](https://github.com/deepseek-php/deepseek-php-client/blob/master/src/Enums/Configs/DefaultConfigs.php)
### Advanced Usage
```php
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
🏆 Creator
![]()
Assem Alwaseai
💻 Contributor
![]()
Faisal
💻 Contributor
Want to contribute? Check out the [contributing guidelines](./CONTRIBUTING.md) and submit a pull request! 🚀
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
---
# 🐘✨ **DeepSeek PHP Community** ✨🐘
Click the button bellow or [join here](https://t.me/deepseek_php_community) to be part of our growing community!
[](https://t.me/deepseek_php_community)
### **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---
### SecurityIf you discover any security-related issues, please email [[email protected]](mailto:[email protected]) instead of using the issue tracker.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.