PHPackages                             johadtech/deepseek-v3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. johadtech/deepseek-v3

ActiveLibrary[API Development](/categories/api)

johadtech/deepseek-v3
=====================

A Laravel package for integrating DeepSeek V3 API.

11PHP

Since Jan 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/johadtech/johadtech-deepseek-v3)[ Packagist](https://packagist.org/packages/johadtech/deepseek-v3)[ RSS](/packages/johadtech-deepseek-v3/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Johadtech DeepSeek V3 Package
=============================

[](#johadtech-deepseek-v3-package)

A robust Laravel package for integrating the DeepSeek V3 API.

Installation
------------

[](#installation)

### Step 1: Install via Composer

[](#step-1-install-via-composer)

Run the following command in your terminal:

```
composer require johadtech/deepseek-v3
```

### Step 2: Publish the Configuration File

[](#step-2-publish-the-configuration-file)

Once installed, publish the package configuration file using:

```
php artisan vendor:publish --provider="Johadtech\DeepSeekV3\Providers\DeepSeekServiceProvider" --tag="deepseek-config"
```

### Step 3: Set Up Your API Key

[](#step-3-set-up-your-api-key)

Open your `.env` file and add the following entry:

```
DEEPSEEK_API_KEY=your_api_key_here
```

Replace `your_api_key_here` with your actual DeepSeek API key.

---

Usage
-----

[](#usage)

### Basic Chat Completion

[](#basic-chat-completion)

To send a simple chat message to DeepSeek:

```
use Johadtech\DeepSeekV3\Facades\DeepSeek;

$response = DeepSeek::chat([
    ['role' => 'user', 'content' => 'Hello']
]);

echo $response['content'];
```

### Advanced Chat Completion with Parameters

[](#advanced-chat-completion-with-parameters)

You can also specify additional parameters for more control:

```
$response = DeepSeek::chat(
    messages: [
        ['role' => 'user', 'content' => 'Explain quantum computing']
    ],
    params: [
        'model' => 'deepseek-reasoner',
        'temperature' => 0.7,
        'max_tokens' => 1000
    ]
);
```

### Handling Errors

[](#handling-errors)

Ensure you catch exceptions when making API calls:

```
try {
    $response = DeepSeek::chat([['role' => 'user', 'content' => 'Tell me a joke']]);
    echo $response['content'];
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}
```

---

Testing
-------

[](#testing)

To run tests, use:

```
composer test
```

Ensure you have PHPUnit installed in your development environment.

---

Documentation
-------------

[](#documentation)

For full documentation, visit [DeepSeek API Docs](https://api-docs.deepseek.com/).

---

Contributing
------------

[](#contributing)

We welcome contributions! To contribute:

1. Fork the repository.
2. Create a new branch (`feature-name`).
3. Commit your changes.
4. Submit a pull request.

---

License
-------

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/243eab7b06dccfc783bd94401c34f7faa5b86e23bc5ae2c89e1ffb874f098123?d=identicon)[johadtech](/maintainers/johadtech)

---

Top Contributors

[![johadtech](https://avatars.githubusercontent.com/u/172508215?v=4)](https://github.com/johadtech "johadtech (1 commits)")

### Embed Badge

![Health badge](/badges/johadtech-deepseek-v3/health.svg)

```
[![Health](https://phpackages.com/badges/johadtech-deepseek-v3/health.svg)](https://phpackages.com/packages/johadtech-deepseek-v3)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
