Type-safe, provider-agnostic TypeScript SDK for streaming chat, tool calling, agents, and multimodal apps across major LLM providers and UI frameworks.
prism-php/prism
A Laravel package that gives PHP applications a single fluent interface for calling LLMs across multiple AI providers.
- Stars
- 2,430
- Forks
- 312
- Open issues
- 76
- Last commit
- 22 days ago
What is it?
Prism is a Laravel package for integrating large language models into PHP applications. It offers one fluent API for generating text, running multi-step conversations, and letting models call tools, so application code does not need to be rewritten for each AI provider.
The package is built for Laravel developers who want to add AI features such as chat, content generation, or tool-using assistants to an existing app. Its documentation is hosted on the Prism website, and the project is published on Packagist under the MIT license.
The README names Anthropic, OpenAI, and Ollama among the topics, which indicates the providers the project is associated with.
Key features
- 01Provides a fluent interface for text generation in Laravel.
- 02Supports multi-step conversations with LLMs.
- 03Lets models use tools from within application code.
- 04Works across multiple AI providers through one API.
- 05Installs as a standard Composer package.
Use cases
- Adding an AI chat feature to an existing Laravel application.
- Generating text or summaries inside Laravel jobs and controllers.
- Building tool-using assistants that act on application data.
Quick start
- 1
Read the official documentation on the Prism website for installation and usage
Things to know
- The README does not include installation commands; setup details are only in the external documentation.
- Prism is a Laravel package, so it requires a PHP and Laravel application to use.
In collections
Topics
FAQ
- What is prism?
- A Laravel package that gives PHP applications a single fluent interface for calling LLMs across multiple AI providers. Prism is a Laravel package for integrating large language models into PHP applications. It offers one fluent API for generating text, running multi-step conversations, and letting models call tools, so application code does not need to be rewritten for each AI provider.
- Is prism free to use? What license does it have?
- prism is open source under the MIT license. Check the license terms before using it in commercial products.
- Is prism still maintained?
- Actively maintained. The last commit to prism was on Oct 16, 2026.
- What can I use prism for?
- Adding an AI chat feature to an existing Laravel application. Generating text or summaries inside Laravel jobs and controllers. Building tool-using assistants that act on application data.
- How do I install prism?
- Read the official documentation on the Prism website for installation and usage
- Where can I get prism?
- The source code and installation instructions are on GitHub: https://github.com/prism-php/prism
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Laravel package for building, tool-equipping and deploying LLM-powered AI agents with persistent memory, tracing and a web dashboard (now retired; v0.0.48 is final).
Open-source AI agent that automatically reviews pull requests and offers /describe, /review, /improve and /ask commands on GitHub, GitLab, Bitbucket and Azure DevOps.
A command-line tool and Python library for running prompts and chats against remote and locally installed large language models.
A terminal coding agent written in Go that edits files, runs commands and keeps local sessions, with you choosing the model and permission level.
Elixir library for integrating LLMs such as Claude, OpenAI, Gemini, Ollama and self-hosted models into Elixir applications.