PHPackages                             webboy/deepseek - 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. webboy/deepseek

ActiveLibrary[API Development](/categories/api)

webboy/deepseek
===============

PHP client for Deepseek AI API

1.0.3(1y ago)7101MITPHPPHP ^8.1

Since Jan 26Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (5)Used By (0)

Deepseek PHP Client
===================

[](#deepseek-php-client)

[![Latest Stable Version](https://camo.githubusercontent.com/919acd5cde7e9a9eee0fd77ac5599428ab6a18f9e940bb058834c14e4a7bccc3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562626f792f646565707365656b2e737667)](https://packagist.org/packages/webboy/deepseek)[![Total Downloads](https://camo.githubusercontent.com/7a30003c1a1fcdc568534af0913e1d6330ce236c2dd936af0744e0d3f3aebf53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776562626f792f646565707365656b2e737667)](https://packagist.org/packages/webboy/deepseek)[![PHP Version](https://camo.githubusercontent.com/45e71522915d4e107e7c59fa8c72522275c2462cb47866116ebe920555318319/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f776562626f792f646565707365656b2e737667)](https://packagist.org/packages/webboy/deepseek)[![License](https://camo.githubusercontent.com/a8e0162ed3f8d21e7cf6418d3ede369fe12c1af45130a52287e8711e2bb251f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776562626f792f646565707365656b2e737667)](https://packagist.org/packages/webboy/deepseek)[![Build Status](https://github.com/webboy/deepseek/actions/workflows/php.yml/badge.svg)](https://github.com/webboy/deepseek/actions)

A PHP client for interacting with the Deepseek AI API, providing easy-to-use methods to communicate with Deepseek's services.

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

[](#installation)

Install the package via Composer:

```
composer require webboy/deepseek
```

Requirements
------------

[](#requirements)

PHP ^8.1

ext-json extension

ext-curl extension

Features
--------

[](#features)

- Easy integration with Deepseek AI API
- Utilizes Guzzle for HTTP requests
- Simple and fluent API for request handling
- Laravel-friendly using illuminate/collections

Usage
-----

[](#usage)

### Initialize the client

[](#initialize-the-client)

```
use Webboy\Deepseek\Deepseek;

$deepseek = new Deepseek('your-api-key');
```

### Get all models

[](#get-all-models)

```
$response = $client
    ->listModels()
    ->call();
```

### Get user balance

[](#get-user-balance)

```
$response = $client
    ->getBalance()
    ->call();
```

### Start a chat session

[](#start-a-chat-session)

```
$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();
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance42

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

476d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a51d3fc2b38653d6a521a0e32585fc99036711f9aa89a59200c6891abaad99e3?d=identicon)[webboy](/maintainers/webboy)

---

Top Contributors

[![webboy](https://avatars.githubusercontent.com/u/1636797?v=4)](https://github.com/webboy "webboy (22 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[lkdevelopment/hetzner-cloud-php-sdk

An unofficial PHP SDK for the Hetzner Cloud API.

12692.0k1](/packages/lkdevelopment-hetzner-cloud-php-sdk)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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