Package

Deepseek Php Deepseek Laravel

A seamless Laravel integration for the Deepseek PHP client, enabling effortless interaction with the Deepseek API in your Laravel applications.

Package

deepseek-php/deepseek-laravel

View on GitHub →

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")
    ->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

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.

Security

If you discover any security-related issues, please email omaralwi2010@gmail.com instead of using the issue tracker.

License

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

Deepseek Php Deepseek Laravel 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
Modern PHP features explained - PHP 8.0 and 8.1 image

Modern PHP features explained - PHP 8.0 and 8.1

Read article
PHP-PM Is a Process Manager, Supercharger, and Load Balancer for PHP Applications image

PHP-PM Is a Process Manager, Supercharger, and Load Balancer for PHP Applications

Read article
PHP News: A New Site for PHP Releases, RFCs, and Packages image

PHP News: A New Site for PHP Releases, RFCs, and Packages

Read article
PHP Fatal Error Backtraces in PHP 8.5 image

PHP Fatal Error Backtraces in PHP 8.5

Read article
Generate Secure, Memorable Passphrases in PHP with PHP Passphrase image

Generate Secure, Memorable Passphrases in PHP with PHP Passphrase

Read article

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

PhpStorm

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

PhpStorm

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

Shift

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

Shift

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

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum