PHPackages                             papi-ai/mistral - 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. papi-ai/mistral

ActiveLibrary

papi-ai/mistral
===============

Mistral provider for PapiAI

v0.9.1(2mo ago)00MITPHPPHP ^8.2CI passing

Since Mar 7Pushed 1mo agoCompare

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

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

PapiAI Mistral Provider
=======================

[](#papiai-mistral-provider)

[![CI](https://github.com/papi-ai/mistral/workflows/CI/badge.svg)](https://github.com/papi-ai/mistral/actions?query=workflow%3ACI) [![Latest Version](https://camo.githubusercontent.com/5a8f3fb3376759e3bc259a83ecbc9434cfdd3252a8573899c0ca1d73447365dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706170692d61692f6d69737472616c2e737667)](https://packagist.org/packages/papi-ai/mistral) [![Total Downloads](https://camo.githubusercontent.com/3bdc1ede99824baf7dc1a4528acd14ae8ae627ffcb2720f75472ffec2aa9e5c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706170692d61692f6d69737472616c2e737667)](https://packagist.org/packages/papi-ai/mistral) [![PHP Version](https://camo.githubusercontent.com/42e3e7e1aee870c21077166bc8cd6747d97b3cf57c68a6a2fa412dc16be24d38/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706170692d61692f6d69737472616c2e737667)](https://packagist.org/packages/papi-ai/mistral) [![License](https://camo.githubusercontent.com/86b609edffcceafeb4fb22e9b5abd582495923558f4835c0afaa2353139f4ef4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706170692d61692f6d69737472616c2e737667)](https://packagist.org/packages/papi-ai/mistral)

Mistral provider for [PapiAI](https://github.com/papi-ai/papi-core) - A simple but powerful PHP library for building AI agents.

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

[](#installation)

```
composer require papi-ai/mistral
```

Usage
-----

[](#usage)

```
use PapiAI\Core\Agent;
use PapiAI\Mistral\MistralProvider;

$provider = new MistralProvider(
    apiKey: $_ENV['MISTRAL_API_KEY'],
);

$agent = new Agent(
    provider: $provider,
    instructions: 'You are a helpful assistant.',
);

$response = $agent->run('Hello!');
echo $response->text;
```

Available Models
----------------

[](#available-models)

```
MistralProvider::MODEL_MISTRAL_LARGE  // 'mistral-large-latest' (default)
MistralProvider::MODEL_MISTRAL_EMBED  // 'mistral-embed' (embeddings)
```

Features
--------

[](#features)

- Tool/function calling
- Streaming support
- Embeddings support

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance88

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

60d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/126c34b4dff8d42336ea07ac5297bcc3ec0a0e306fd964a7497f02240da4b142?d=identicon)[md](/maintainers/md)

---

Top Contributors

[![MarcelloDuarte](https://avatars.githubusercontent.com/u/144535?v=4)](https://github.com/MarcelloDuarte "MarcelloDuarte (10 commits)")

###  Code Quality

TestsPest

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/papi-ai-mistral/health.svg)

```
[![Health](https://phpackages.com/badges/papi-ai-mistral/health.svg)](https://phpackages.com/packages/papi-ai-mistral)
```

PHPackages © 2026

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