PHPackages                             tredmann/php-llm-client - 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. tredmann/php-llm-client

ActiveLibrary[API Development](/categories/api)

tredmann/php-llm-client
=======================

v0.3.0(1y ago)27MITPHPPHP ^8.3

Since Jan 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tredmann/php-llm-client)[ Packagist](https://packagist.org/packages/tredmann/php-llm-client)[ RSS](/packages/tredmann-php-llm-client/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

php-llm-client
==============

[](#php-llm-client)

General Client API to easy access to several LLM APIs (OpenAPI, Ollama, Google Gemini)

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

[](#installation)

```
composer require tredmann/php-llm-client
```

Usage
-----

[](#usage)

```
use LLM\Enums\Type;
use LLM\LLM;

$llm = LLM::make(Type::Ollama);

echo $llm->completion(
    model: 'gemma2:latest',
    prompt: 'What is the capital of Germany?',
    temperature: 1.0
);

// Output: The capital of Germany is **Berlin**.
```

Supported Providers/LLMs
------------------------

[](#supported-providersllms)

- OpenAI (`Type::OpenAI`)
- OpenAI Legacy Completion (`Type::OpenAILegacy`)
- Ollama (`Type::Ollama`)
- Google Gemini (`Type::Gemini`)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~8 days

Total

3

Last Release

526d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce62843fe1df789ccf6cd74730b2c56b8b0a173e4df76fd3762cc6188126844d?d=identicon)[tobias.redmann](/maintainers/tobias.redmann)

---

Top Contributors

[![balt-technologies](https://avatars.githubusercontent.com/u/49306158?v=4)](https://github.com/balt-technologies "balt-technologies (3 commits)")[![tredmann](https://avatars.githubusercontent.com/u/2635078?v=4)](https://github.com/tredmann "tredmann (2 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tredmann-php-llm-client/health.svg)

```
[![Health](https://phpackages.com/badges/tredmann-php-llm-client/health.svg)](https://phpackages.com/packages/tredmann-php-llm-client)
```

###  Alternatives

[sproutcms/cms

Enterprise content management and framework

242.5k4](/packages/sproutcms-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49617.1k](/packages/blackfire-player)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

3017.9k](/packages/mage-os-module-automatic-translation)

PHPackages © 2026

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