Download the PHP package partitech/php-mistral without Composer

On this page you can find all versions of the php package partitech/php-mistral. 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 php-mistral

PhpMistral

[!IMPORTANT] 📖 Official Documentation is available here: https://php-mistral.partitech.com/
Make sure to visit for in-depth guides, examples, and advanced usage.


PhpMistral is an open-source PHP client designed to interact with various LLM inference servers (like Mistral, Hugging Face TGI, vLLM, Ollama, llama.cpp, xAI, and more), embedding servers, and Hugging Face datasets.
It provides a unified interface for chat completions (streaming & non-streaming), embeddings (dense & sparse), reranking, guided JSON generation, document generation, and Hugging Face dataset management.

[!TIP] Perfect for developers building AI-driven PHP applications: chatbots, document search, reranking, embeddings, or dataset management for finetuning.


🛠 PSR-18 Compatible HTTP Client

PhpMistral has been fully refactored to comply with PSR-18 recommendations (PHP Standards Recommendation for HTTP clients).
This means you can plug in any HTTP client that implements PSR-18, including:

[!IMPORTANT] The library does not lock you into any specific HTTP client. Choose the one that best fits your framework, performance needs, or preferences.
Whether you're using Symfony, Laravel, or a custom stack, PhpMistral integrates seamlessly into your environment.

This ensures flexibility, interoperability, and future-proofing of your PHP AI integrations.


Key Features


Supported Providers & Features

Core Features

Provider Chat (stream) Chat (non-stream) Embeddings Sparse Embeddings
Mistral Platform
Hugging Face TGI
vLLM
Ollama
llama.cpp
xAI
Text Embedding Inference

Advanced Features

Provider Rerank Guided JSON Documents Pooling HF Datasets
Mistral Platform
Hugging Face TGI
vLLM
Ollama
llama.cpp
xAI
Text Embedding Inference

Installation


Example Usages

Chat Completion (Streaming)

Dense Embedding

Sparse Embedding (Splade Pooling)

Rerank

Hugging Face Dataset Management

[!TIP] Combine Hugging Face Datasets with Embeddings and Reranking to build advanced search or finetuning pipelines directly in PHP.


Contributing

We welcome contributions!
Help us make PhpMistral safer, richer, and more powerful.
Feel free to:

[!IMPORTANT] Whether you're a beginner or an experienced developer, your help is valuable!
Join us in making PhpMistral the go-to PHP library for AI integrations.


License

MIT License


All versions of php-mistral with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-fileinfo Version *
ext-http Version *
symfony/mime Version ^7.2
ramsey/uuid Version ^4.7
knplabs/php-json-schema Version ^0.1.0
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
php-http/discovery Version ^1.20
psr/http-client Version ^1.0
nyholm/psr7 Version ^1.8
php-http/multipart-stream-builder Version ^1.4
ext-zip Version *
czproject/git-php Version ^4.4
logiscape/mcp-sdk-php Version ^1.1
monolog/monolog Version ^3.9
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 partitech/php-mistral contains the following files

Loading the files please wait ....