A PHP client for interacting with the Deepseek AI API, providing easy-to-use methods to communicate with Deepseek's services.
Install the package via Composer:
composer require webboy/deepseekPHP ^8.1
ext-json extension
ext-curl extension
-
Easy integration with Deepseek AI API
-
Utilizes Guzzle for HTTP requests
-
Simple and fluent API for request handling
-
Laravel-friendly using illuminate/collections
use Webboy\Deepseek\Deepseek;
$deepseek = new Deepseek('your-api-key');$response = $client
->listModels()
->call();$response = $client
->getBalance()
->call();$response = $client
->createChatCompletion()
->setResponseFormat('text')
->setSystemMessage('You are a professional LinkedIn influencer.', 'Agent Smith')
->setUserMessage('Write down a short announcement for the initial version for the Deepseek API Client composer package.')
->call();