Skip to content

Introduction

Unleashing the Power of LLMs in PHP

LabsLLM is a powerful, elegant PHP library designed to simplify how developers interact with Large Language Models (LLMs). In a world where AI capabilities are rapidly evolving, LabsLLM provides a unified interface that abstracts away the complexities of different LLM providers, letting you focus on what matters most: creating amazing AI-powered experiences.

With LabsLLM, you can seamlessly integrate state-of-the-art language models into your PHP applications with minimal code. Whether you're building a chatbot, generating content, or enabling AI-powered features, LabsLLM gives you the tools to do it efficiently and elegantly.

Why LabsLLM?

  • Unified API: Write once, run anywhere - switch between OpenAI, Google, or Anthropic models with minimal code changes
  • PHP-First Design: Built from the ground up for PHP developers with modern, fluent interfaces
  • Tool Calling: Enable models to interact with your PHP functions for powerful, dynamic behavior
  • Conversation Management: Easily maintain stateful conversations with context and history
  • Future-Proof: Designed to adapt as LLM capabilities evolve

Provider Support Status

LabsLLM is constantly evolving to support more features across different LLM providers. Here's the current status:

FeatureOpenAIGoogleAnthropic
Text Prompts📅
System Instructions📅
Chat📅
Tools/Functions
Structure Output
Streaming
Embeddings📅
Voice📅
Image Generation📅📅

Legend:

  • ✅ Supported
  • 🚧 In Development
  • 📅 Planned
  • ❌ Not Supported

Released under the MIT License.