# LLPhant/LLPhant

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

Repository: https://github.com/LLPhant/LLPhant
Canonical: https://ross.abutalabs.com/products/llphant
Language: PHP
License: MIT
License Family: permissive
Topics: genai, gpt4, langchain, laravel, llamaindex, openai, php, symfony, autophp, embeddings, generative-ai, vector-database, agent
Last push: 2026-07-26T08:28:11+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 95, longevity 80
- inputs: {"age_days": 1129, "days_push": 38, "days_rel": 38, "gap_med": 8, "n_releases_24m": 28}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1708, forks 171 (observed 2026-08-28T04:05:25.528244+00:00)

## What it is
LLPhant is a comprehensive PHP generative AI framework inspired by LangChain and LlamaIndex, providing tools for working with LLMs, embeddings, vector databases, and autonomous agents. It supports multiple providers including OpenAI, Anthropic, Mistral, and Ollama, and integrates with Symfony and Laravel.

## Use cases
- build a RAG pipeline in PHP
- create autonomous AI agents with PHP
- generate embeddings and search a vector database
- integrate OpenAI or Ollama into a Symfony app
- add LLM-powered chat to a Laravel project
- evaluate LLM outputs in PHP

## When to choose
- you are building generative AI features in PHP, especially with Symfony or Laravel
- you want a LangChain-like abstraction for LLMs, embeddings, and agents in the PHP ecosystem
- you need multi-provider LLM support including local models via Ollama

## When to avoid
- your stack is Python or JavaScript, where LangChain or LlamaIndex have larger ecosystems
- you need cutting-edge agent features that only exist in more mature frameworks
- you are not using PHP 8.1+

## Facets
- artifact type: library
- maturity: active
- function: agent-framework, rag, llm-inference, llm-training, chatbot, sdk
- domain: large-language-models, artificial-intelligence, web-development
- platform: php, self-hosted, cross-platform
- tags: langchain-inspired, openai, symfony, laravel, vector-databases, generative-ai, composer, retrieval-augmented-generation, ai-agents

## Member repositories
- LLPhant/LLPhant (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.528244+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:36:59.524384+00:00, confidence not recorded.
  - readme: https://github.com/LLPhant/LLPhant (fetched 2026-08-28T04:05:25.528244+00:00, sha 47b60532b8c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
