theodo-group/LLPhant

LLPhant - A comprehensive PHP Generative AI Framework using OpenAI GPT 4. Inspired by Langchain

1,708

stars

435

commits

PHP

primary language

Sep 7, 2026

updated

agent
autophp
embeddings
genai
generative-ai
gpt4
langchain
laravel
llamaindex
openai
php
symfony
vector-database
Browse cluster: LLM Chat Interfaces & Integrations

README

LLPhant - The PHP library for Gen AI and Vector Databases

LLPhant

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, Anthropic, Mistral, Ollama, LM Studio, Atlas Cloud and services compatible with the OpenAI API such as LocalAI. Ollama that can be used to run LLM locally such as Llama 2.

Atlas Cloud

LLPhant's AtlasCloudConfig targets the OpenAI-compatible Atlas Cloud endpoint at https://api.atlascloud.ai/v1 and now defaults to the validated chat model qwen/qwen3.5-flash.

The configuration also accepts any Atlas model slug exposed by your account via the optional ATLASCLOUD_MODEL environment variable. Examples from the current public Text model list include:

  • qwen/qwen3.5-flash
  • qwen/qwen3.6-plus
  • deepseek-ai/deepseek-v4-flash
  • deepseek-ai/deepseek-v4-pro
  • google/gemini-3.5-flash
  • zai-org/glm-4.7

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

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

Get Started

Note
Requires PHP 8.1+

First, install LLPhant via the Composer 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 as it is the main client.

Documentation

Find documentation in the docs directory or online at https://llphant.readthedocs.org

Contributing

See CONTRIBUTING for details.

Contributors

Thanks to our contributors:

LLPhant is sponsored by :

  • AGO. Generative AI customer support solutions.
  • Theodo a leading digital agency building web application with Generative AI.

Contributors

(top 30 of 60)

f-lombardo

160 commits

fballiano

34 commits

Th0masso

23 commits

cedricziel

16 commits

theodo-group/LLPhant

LLPhant - A comprehensive PHP Generative AI Framework using OpenAI GPT 4. Inspired by Langchain

1,708

stars

435

commits

PHP

primary language

Sep 7, 2026

updated

agent
autophp
embeddings
genai
generative-ai
gpt4
langchain
laravel
llamaindex
openai
php
symfony
vector-database
Browse cluster: LLM Chat Interfaces & Integrations

README

LLPhant - The PHP library for Gen AI and Vector Databases

LLPhant

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, Anthropic, Mistral, Ollama, LM Studio, Atlas Cloud and services compatible with the OpenAI API such as LocalAI. Ollama that can be used to run LLM locally such as Llama 2.

Atlas Cloud

LLPhant's AtlasCloudConfig targets the OpenAI-compatible Atlas Cloud endpoint at https://api.atlascloud.ai/v1 and now defaults to the validated chat model qwen/qwen3.5-flash.

The configuration also accepts any Atlas model slug exposed by your account via the optional ATLASCLOUD_MODEL environment variable. Examples from the current public Text model list include:

  • qwen/qwen3.5-flash
  • qwen/qwen3.6-plus
  • deepseek-ai/deepseek-v4-flash
  • deepseek-ai/deepseek-v4-pro
  • google/gemini-3.5-flash
  • zai-org/glm-4.7

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

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

Get Started

Note
Requires PHP 8.1+

First, install LLPhant via the Composer 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 as it is the main client.

Documentation

Find documentation in the docs directory or online at https://llphant.readthedocs.org

Contributing

See CONTRIBUTING for details.

Contributors

Thanks to our contributors:

LLPhant is sponsored by :

  • AGO. Generative AI customer support solutions.
  • Theodo a leading digital agency building web application with Generative AI.

Contributors

(top 30 of 60)

f-lombardo

160 commits

fballiano

34 commits

Th0masso

23 commits

cedricziel

16 commits

Languages

PHP

99.8%