PHPackages                             theodo-group/llphant - 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. theodo-group/llphant

ActiveLibrary[API Development](/categories/api)

theodo-group/llphant
====================

LLPhant is a library to help you build Generative AI applications.

0.11.15(2mo ago)1.5k311.5k↑13.8%149[25 issues](https://github.com/LLPhant/LLPhant/issues)[8 PRs](https://github.com/LLPhant/LLPhant/pulls)5MITPHPPHP ^8.1.0CI passing

Since Jul 31Pushed 1mo ago36 watchersCompare

[ Source](https://github.com/LLPhant/LLPhant)[ Packagist](https://packagist.org/packages/theodo-group/llphant)[ RSS](/packages/theodo-group-llphant/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (59)Versions (144)Used By (5)

LLPhant - A comprehensive PHP Generative AI Framework
=====================================================

[](#llphant---a-comprehensive-php-generative-ai-framework)

 [![LLPhant](docs/assets/llphant-logo.png)](docs/assets/llphant-logo.png)

We designed this framework to be as simple as possible, while still providing you with the tools you need to build powerful apps. It is compatible with Symfony and Laravel.

We are working to expand the support of different LLMs. Right now, we are supporting [OpenAI](https://openai.com/blog/openai-api), [Anthropic](https://www.anthropic.com/), [Mistral](https://mistral.ai/), [Ollama](https://ollama.ai/), [LM Studio](https://lmstudio.ai/) and services compatible with the OpenAI API such as [LocalAI](https://localai.io/). Ollama that can be used to run LLM locally such as [Llama 2](https://llama.meta.com/).

We want to thank few amazing projects that we use here or inspired us:

- the learnings from using [LangChain](https://www.langchain.com/) and [LLamaIndex](https://www.llamaindex.ai/)
- the excellent work from the [OpenAI PHP SDK](https://github.com/openai-php/client).

We can find great external resource on LLPhant (ping us to add yours):

- 🇫🇷 [Construire un RAG en PHP avec la doc de Symfony, LLPhant et OpenAI : Tutoriel Complet](https://www.youtube.com/watch?v=zFJgRd05Noo)
- 🇫🇷 [Retour d'expérience sur la création d'un agent autonome](https://www.youtube.com/watch?v=ZnYUxTtS6IU)
- 🇬🇧 [Exploring AI riding an LLPhant](https://www.slideshare.net/slideshow/exploring-ai-riding-an-llphant-an-open-source-library-to-use-llms-and-vector-dbs-in-php/272059145)
- 🇬🇧 [Evaluating LLM and AI agents Outputs with String Comparison, Criteria &amp; Trajectory Approaches](https://medium.com/towards-artificial-intelligence/evaluating-large-language-model-outputs-with-string-comparison-criteria-trajectory-approaches-c42d43c0cdc3)

Get Started
===========

[](#get-started)

> **Note**
> **Requires** [PHP 8.1+](https://php.net/releases/)

First, install LLPhant via the [Composer](https://getcomposer.org/) package manager:

```
composer require theodo-group/llphant
```

In case you have not installed the GD extension, and you do not want to add it to your PHP setup, you can use the `--ignore-platform-req=ext-gd` option

```
composer require theodo-group/llphant --ignore-platform-req=ext-gd
```

If you want to try the latest features of this library, you can use:

```
composer require theodo-group/llphant:dev-main
```

You may also want to check the requirements for [OpenAI PHP SDK](https://github.com/openai-php/client) as it is the main client.

Documentation
-------------

[](#documentation)

Find documentation in [the docs directory](docs) or online at

Contributing
------------

[](#contributing)

See [CONTRIBUTING](CONTRIBUTING.md) for details.

Contributors
------------

[](#contributors)

Thanks to our contributors:

[![](https://camo.githubusercontent.com/40a224ecec9543874f2a2e1f02ffc314bd488245f0a5892ed8ca332e8f90ef34/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d7468656f646f2d67726f75702f6c6c7068616e74)](https://github.com/theodo-group/llphant/graphs/contributors)Sponsor
-------

[](#sponsor)

LLPhant is sponsored by :

- [AGO](https://useago.com). Generative AI customer support solutions.
- [Theodo](https://www.theodo.fr/) a leading digital agency building web application with Generative AI.

 [ ![Theodo logo](https://camo.githubusercontent.com/4e9a12518142fd1d84ff7dd178b8e346e74fc195126a38c942b3bdab947c06d6/68747470733a2f2f63646e322e68756273706f742e6e65742f6875622f323338333539372f68756266732f576562736974652f4c6f676f732f4c6f676f5f5468656f646f5f63726f707065642e737667) ](https://www.theodo.fr/)

###  Health Score

65

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity62

Solid adoption and visibility

Community41

Growing community involvement

Maturity60

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~13 days

Total

129

Last Release

72d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a19d79c8e4ae3dcab8736501225fd77683dafda0e883130be02c12720b70684?d=identicon)[MaximeThoonsen](/maintainers/MaximeThoonsen)

![](https://www.gravatar.com/avatar/218cb4a9046e5063979c3abceff00afabfe1354e40f5df405a95ffb173baee88?d=identicon)[f-lombardo](/maintainers/f-lombardo)

---

Top Contributors

[![f-lombardo](https://avatars.githubusercontent.com/u/280709?v=4)](https://github.com/f-lombardo "f-lombardo (140 commits)")[![fballiano](https://avatars.githubusercontent.com/u/909743?v=4)](https://github.com/fballiano "fballiano (34 commits)")[![Th0masso](https://avatars.githubusercontent.com/u/55784802?v=4)](https://github.com/Th0masso "Th0masso (23 commits)")[![MaximeThoonsen](https://avatars.githubusercontent.com/u/4814551?v=4)](https://github.com/MaximeThoonsen "MaximeThoonsen (16 commits)")[![cedricziel](https://avatars.githubusercontent.com/u/418970?v=4)](https://github.com/cedricziel "cedricziel (16 commits)")[![ClicShopping](https://avatars.githubusercontent.com/u/39338579?v=4)](https://github.com/ClicShopping "ClicShopping (10 commits)")[![detain](https://avatars.githubusercontent.com/u/1364504?v=4)](https://github.com/detain "detain (10 commits)")[![ATC-4K](https://avatars.githubusercontent.com/u/84913633?v=4)](https://github.com/ATC-4K "ATC-4K (8 commits)")[![thomasbeaujean](https://avatars.githubusercontent.com/u/5817919?v=4)](https://github.com/thomasbeaujean "thomasbeaujean (8 commits)")[![bytestream](https://avatars.githubusercontent.com/u/1788397?v=4)](https://github.com/bytestream "bytestream (8 commits)")[![aarongerig](https://avatars.githubusercontent.com/u/17384333?v=4)](https://github.com/aarongerig "aarongerig (7 commits)")[![bfoujols](https://avatars.githubusercontent.com/u/7000210?v=4)](https://github.com/bfoujols "bfoujols (7 commits)")[![cirolaferrara](https://avatars.githubusercontent.com/u/23663704?v=4)](https://github.com/cirolaferrara "cirolaferrara (7 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (7 commits)")[![ktherage](https://avatars.githubusercontent.com/u/35264408?v=4)](https://github.com/ktherage "ktherage (7 commits)")[![mzarnecki](https://avatars.githubusercontent.com/u/12570337?v=4)](https://github.com/mzarnecki "mzarnecki (7 commits)")[![welcoMattic](https://avatars.githubusercontent.com/u/773875?v=4)](https://github.com/welcoMattic "welcoMattic (7 commits)")[![kraynel](https://avatars.githubusercontent.com/u/4620699?v=4)](https://github.com/kraynel "kraynel (6 commits)")[![chr-hertel](https://avatars.githubusercontent.com/u/2852185?v=4)](https://github.com/chr-hertel "chr-hertel (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

agentautophpembeddingsgenaigenerative-aigpt4langchainlaravelllamaindexopenaiphpsymfonyvector-databasephpapilanguageopenaillmanthropicmistralollamagpt-4vectorstore

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/theodo-group-llphant/health.svg)

```
[![Health](https://phpackages.com/badges/theodo-group-llphant/health.svg)](https://phpackages.com/packages/theodo-group-llphant)
```

###  Alternatives

[openai-php/client

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

5.8k22.6M232](/packages/openai-php-client)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[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)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[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)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

281.6k](/packages/bushlanov-dev-max-bot-api-client-php)

PHPackages © 2026

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