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 1mo ago

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 49% of packages

Maintenance42

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

478d 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

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[openai-php/symfony

Symfony Bundle for OpenAI

215715.5k3](/packages/openai-php-symfony)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)[toshy/bunnynet-php

BunnyNet API client for PHP

61172.1k6](/packages/toshy-bunnynet-php)

PHPackages © 2026

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