# LLPhant

A PHP framework for building generative AI applications and retrieval-augmented search, compatible with Symfony and Laravel and inspired by LangChain.

LLPhant is a PHP library for building generative AI applications and working with vector databases, designed to be simple while still covering the tools a production app needs. It works with Symfony and Laravel, and supports a growing set of model providers including OpenAI, Anthropic, Mistral, Ollama, LM Studio, Atlas Cloud and other OpenAI-API-compatible services.

It also includes a typed classifier for structured yes-or-no, multiple-choice and rubric-scored questions, which reports its own input and output token usage. LLPhant installs through Composer and requires PHP 8.1 or later; its documentation covers retrieval-augmented generation and autonomous agents alongside the classifier.

Website: https://github.com/LLPhant/LLPhant
