Repolode
prism-php

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. 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