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.21(1mo ago)1.7k409.0k↓10.1%167[25 issues](https://github.com/LLPhant/LLPhant/issues)[13 PRs](https://github.com/LLPhant/LLPhant/pulls)6MITPHPPHP ^8.1.0CI passing

Since Jul 31Pushed 4d ago38 watchersCompare

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

READMEChangelog (10)Dependencies (90)Versions (153)Used By (6)

LLPhant - The PHP library for Gen AI and Vector Databases
=========================================================

[](#llphant---the-php-library-for-gen-ai-and-vector-databases)

 [![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/), [Atlas Cloud](https://www.atlascloud.ai/docs) 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

68

—

FairBetter than 99% of packages

Maintenance95

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community42

Growing community involvement

Maturity61

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

Total

134

Last Release

47d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4814551?v=4)[Thoonsen Maxime](/maintainers/MaximeThoonsen)[@MaximeThoonsen](https://github.com/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 (155 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)")[![scotteuser](https://avatars.githubusercontent.com/u/7620946?v=4)](https://github.com/scotteuser "scotteuser (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)")[![Hormah](https://avatars.githubusercontent.com/u/5639185?v=4)](https://github.com/Hormah "Hormah (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.8k28.0M317](/packages/openai-php-client)[sylius/sylius

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

8.5k5.9M736](/packages/sylius-sylius)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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