1. Go to this page and download the library: Download lanos/deepseek-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lanos / deepseek-client example snippets
use Lanos\DeepSeek\Facades\DeepSeek;
$response = DeepSeek::sendRequest('POST', 'endpoint', ['data' => 'value']);
use Lanos\DeepSeek\Interfaces\DeepSeekClientInterface;
class YourController
{
public function __construct(
private DeepSeekClientInterface $deepSeekClient
) {}
public function yourMethod()
{
$response = $this->deepSeekClient->sendRequest('POST', 'endpoint', ['data' => 'value']);
}
}
use Lanos\DeepSeek\DeepSeekClient;
use GuzzleHttp\Client;
$client = new DeepSeekClient(new Client(), 'your_api_key');
$response = $client->sendRequest('POST', 'endpoint', ['data' => 'value']);
bash
php artisan vendor:publish --tag=config
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.