LLPhant is a free, open source machine learning infrastructure project written in PHP and released under MIT. It has 1,708 GitHub stars, 172 forks and 36 open issues, and was last pushed 11 days ago. On this registry it ranks #56 of 80 tracked projects in Machine Learning Infrastructure, with 5 head-to-head comparisons available.

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, llmman, 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:

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:

Sponsor

LLPhant is sponsored by :

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

Frequently asked questions

Is LLPhant free to use?

LLPhant is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does LLPhant do?

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

What is LLPhant written in?

LLPhant is primarily written in PHP. Its source is publicly available at https://github.com/LLPhant/LLPhant, and it has 1,708 GitHub stars.