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

ActiveLibrary

papi-ai/groq
============

Groq provider for PapiAI

v0.9.1(1w ago)00MITPHPPHP ^8.2CI passing

Since Mar 7Pushed 1w agoCompare

[ Source](https://github.com/papi-ai/groq)[ Packagist](https://packagist.org/packages/papi-ai/groq)[ RSS](/packages/papi-ai-groq/feed)WikiDiscussions main Synced today

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

PapiAI Groq Provider
====================

[](#papiai-groq-provider)

[![CI](https://github.com/papi-ai/groq/workflows/CI/badge.svg)](https://github.com/papi-ai/groq/actions?query=workflow%3ACI) [![Latest Version](https://camo.githubusercontent.com/bb424e6cea3386047204efea327b1844577f3f0938fa5e700cf0a0c0d936ce19/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706170692d61692f67726f712e737667)](https://packagist.org/packages/papi-ai/groq) [![Total Downloads](https://camo.githubusercontent.com/77dd703a92f12713b7e53b89e51308090c42234d094c400ccbf0755b10682647/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706170692d61692f67726f712e737667)](https://packagist.org/packages/papi-ai/groq) [![PHP Version](https://camo.githubusercontent.com/c6cb39c60a99153ad746b8fe4cb2a5de3f697ea311403769624bb50aa05c3bac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f706170692d61692f67726f712e737667)](https://packagist.org/packages/papi-ai/groq) [![License](https://camo.githubusercontent.com/d1f6a7db02f07df2cfa7e383e82b52c83adc1b6deea589dde7a2bd94af16ee3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706170692d61692f67726f712e737667)](https://packagist.org/packages/papi-ai/groq)

Groq 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/groq
```

Usage
-----

[](#usage)

```
use PapiAI\Core\Agent;
use PapiAI\Groq\GroqProvider;

$provider = new GroqProvider(
    apiKey: $_ENV['GROQ_API_KEY'],
);

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

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

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

[](#available-models)

```
GroqProvider::MODEL_LLAMA_3_3_70B  // 'llama-3.3-70b-versatile' (default)
GroqProvider::MODEL_LLAMA_3_1_8B   // 'llama-3.1-8b-instant' (fast)
GroqProvider::MODEL_MIXTRAL_8X7B   // 'mixtral-8x7b-32768'
```

Features
--------

[](#features)

- Ultra-fast inference via Groq LPU
- Tool/function calling
- Streaming support

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 84% of packages

Maintenance98

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 ~0 days

Total

4

Last Release

13d 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 (9 commits)")

###  Code Quality

TestsPest

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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