← all repositories
prism-php/prism

Prism refracts multiple LLMs into Laravel syntax

Prism gives Laravel developers a single fluent API for generating text, chatting, and calling tools across multiple LLM providers.

prism
Not currently ranked — collecting fresh signals.
star history

What it does Prism is a Laravel package that acts as a unified front end for multiple LLM providers. It exposes a fluent PHP interface for text generation, multi-step conversations, and tool calls, sparing you from managing separate SDKs for each backend. The README treats the repo as a billboard rather than a manual, so most implementation details live on the project’s external documentation site.

The interesting bit The package maps the LLM providers listed in its repo topics—OpenAI, Anthropic/Claude, and Ollama—into Laravel-shaped syntax. If your application already thinks in Eloquent and facades, this keeps your AI layer from feeling like a foreign microservice.

Key highlights

  • Unifies several major providers (OpenAI, Anthropic/Claude, and Ollama per repo topics) behind one consistent PHP API
  • Handles text generation, conversation state, and tool use without leaving Laravel patterns
  • MIT-licensed and community-backed, though not officially part of Laravel
  • README points to prismphp.com for full documentation and examples

Caveats

  • The README is essentially a landing page; architecture details, provider coverage, and migration paths live offsite
  • As a unified interface, it trades direct access to provider-specific quirks for consistency

Verdict Worth evaluating if you are building LLM features inside Laravel and want to avoid provider lock-in early. Pure Symfony or vanilla PHP projects should look elsewhere.

Frequently asked

What is prism-php/prism?
Prism gives Laravel developers a single fluent API for generating text, chatting, and calling tools across multiple LLM providers.
Is prism open source?
Yes — prism-php/prism is open source, released under the MIT license.
What language is prism written in?
prism-php/prism is primarily written in PHP.
How popular is prism?
prism-php/prism has 2.4k stars on GitHub.
Where can I find prism?
prism-php/prism is on GitHub at https://github.com/prism-php/prism.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.