Download the PHP package deepseek-php/deepseek-php-client without Composer

On this page you can find all versions of the php package deepseek-php/deepseek-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package deepseek-php-client

DeepSeek PHP Client

โšก๏ธ A community-driven, open-source PHP client for DeepSeek AI, officially listed in the DeepSeek API documentation and built for expressive, production-ready AI integrations.

Latest Version Total Downloads PHP Version License GitHub Stars

[AR](README-AR.md) | [CN](README-CN.md) ## Table of Contents - [โœจ Features](#-features) - [๐Ÿ“ฆ Installation](#-installation) - [๐Ÿš€ Quick Start](#-quick-start) - [Basic Usage](#basic-usage) - [Advanced Configuration](#advanced-configuration) - [important warning with json mode](#-deepseek-json-mode-requirement) - [Use with Symfony HttpClient](#use-with-symfony-httpclient) - [Get Models List](#get-models-list) - [Function Calling](#function-calling) - [Framework Integration](#-framework-integration) - [๐Ÿ†• Migration Guide](#-migration-guide) - [๐Ÿ“ Changelog](#-changelog) - [๐Ÿงช Testing](#-testing) - [๐Ÿ”’ Security](#-security) - [๐Ÿ“„ License](#-license) --- ## โœจ Features - **Seamless API Integration**: PHP-first interface for DeepSeek's AI capabilities. - **Fluent Builder Pattern**: Chainable methods for intuitive request building. - **Enterprise Ready**: PSR-18 compliant HTTP client integration. - **Latest DeepSeek V4 Models**: First-class support for `deepseek-v4-pro` and `deepseek-v4-flash` with 1M-token context windows and thinking / non-thinking modes. - **Streaming Ready**: Built-in support for real-time response handling. - **Many Http Clients**: easy to use `Guzzle http client` (default) , or `symfony http client`. - **Framework Friendly**: Laravel & Symfony packages available. > **Supported Models** > > - `Models::V4_PRO` โ€” flagship 1.6T/49B-active model, max 384K output tokens. > - `Models::V4_FLASH` โ€” fast, economical 284B/13B-active model, max 384K output tokens. > > Legacy `Models::CHAT`, `Models::CODER`, `Models::R1`, and `Models::R1Zero` are deprecated and will be removed in v3.0.0. The `deepseek-chat` and `deepseek-reasoner` aliases retire from the DeepSeek API on **2026-07-24**. --- ## ๐Ÿ“ฆ Installation Require the package via Composer: **Requirements**: - PHP 8.1+ --- ## ๐Ÿš€ Quick Start ### Basic Usage Get started with just two lines of code: ๐Ÿ“Œ Defaults used: - Model: API default (no `model` field sent unless you call `withModel()`) - Temperature: 1.3 (`TemperatureValues::GENERAL_CONVERSATION`) - Max tokens: 4096 - Response format: `text` ### Advanced Configuration ## โš ๏ธ DeepSeek JSON Mode Requirement When using: Your prompt **must contain the word `"json"`** in some form. Otherwise, the API will reject the request with the following error: > `"Prompt must contain the word 'json' in some form to use 'response_format' of type 'json_object'"` --- ### ๐Ÿšซ Incorrect Usage ### โœ… Correct Usage > โœ… **Tip**: For best results, also provide a JSON example or explicitly say: > *"Respond only in valid JSON."* --- ### Use with Symfony HttpClient the package already built with `symfony Http client`, if you need to use package with `symfony` Http Client , it is easy to achieve that, just pass `clientType:'symfony'` with `build` function. ex with symfony: ### Get Models List ### Function Calling Function Calling allows the model to call external tools to enhance its capabilities.[[1]](https://api-docs.deepseek.com/guides/function_calling) You Can check the documentation for function calling in [FUNCTION-CALLING.md](docs/FUNCTION-CALLING.md) ### ๐Ÿ›  Framework Integration ### [Laravel Deepseek Package](https://github.com/deepseek-php/deepseek-laravel) --- ## ๐Ÿšง Migration Guide Upgrading from v1.x? Check our comprehensive [Migration Guide](MIGRATION.md) for breaking changes and upgrade instructions. --- ## ๐Ÿ“ Changelog Detailed release notes available in [CHANGELOG.md](CHANGELOG.md) --- ## ๐Ÿงช Testing Test coverage coming in v2.1. ---
# ๐Ÿ˜โœจ **DeepSeek PHP Community** โœจ๐Ÿ˜ Click the button bellow or [join here](https://t.me/deepseek_php_community) to be part of our growing community! [![Join Telegram](https://img.shields.io/badge/Join-Telegram-blue?style=for-the-badge&logo=telegram)](https://t.me/deepseek_php_community) ### **Channel Structure** ๐Ÿ—๏ธ - ๐Ÿ—จ๏ธ **General** - Daily chatter - ๐Ÿ’ก **Ideas & Suggestions** - Shape the community's future - ๐Ÿ“ข **Announcements & News** - Official updates & news - ๐Ÿš€ **Releases & Updates** - Version tracking & migration support - ๐Ÿž **Issues & Bug Reports** - Collective problem-solving - ๐Ÿค **Pull Requests** - Code collaboration & reviews
--- ## ๐Ÿ”’ Security **Report Vulnerabilities**: to [[email protected]](mailto:[email protected]) --- ## ๐Ÿ“„ License This package is open-source software licensed under the [MIT License](LICENSE.md).

All versions of deepseek-php-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2.0
nyholm/psr7 Version ^1.8
php-http/discovery Version ^1.20.0
php-http/multipart-stream-builder Version ^1.4.2
psr/http-client Version ^1.0.3
psr/http-client-implementation Version 1.0
psr/http-factory-implementation Version *
psr/http-message Version ^1.1.0|^2.0.0
symfony/http-client Version ^6.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package deepseek-php/deepseek-php-client contains the following files

Loading the files please wait ...