LLPhant
LLPhant/LLPhant
LLPhant - A comprehensive PHP Generative AI Framework using OpenAI GPT 4. Inspired by Langchain
LLPhant - A comprehensive PHP Generative AI Framework using OpenAI GPT 4. Inspired by Langchain
Categories
Tags
Similar tools
ECC
affaan-m/ECC
The agent harness performance optimization system
hermes-agent
NousResearch/hermes-agent
The self-improving AI agent built by Nous Research
AutoGPT
Significant-Gravitas/AutoGPT
AutoGPT: Build, Deploy, and Run AI Agents
ollama
ollama/ollama
Get up and running with Kimi-K2.6, GLM-5.1, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
prompts.chat
f/prompts.chat
The world's largest open-source prompt library for AI
transformers
huggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models
Install
git clone https://github.com/LLPhant/LLPhantREADME
LLPhant - The PHP library for Gen AI and Vector Databases
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.
We want to thank few amazing projects that we use here or inspired us:
- the learnings from using LangChain and LLamaIndex
- the excellent work from the OpenAI PHP SDK.
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
- 🇫🇷 Retour d'expérience sur la création d'un agent autonome
- 🇬🇧 Exploring AI riding an LLPhant
- 🇬🇧 Evaluating LLM and AI agents Outputs with String Comparison, Criteria & Trajectory Approaches
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:
Sponsor
LLPhant is sponsored by :