About Prism
Prism is a package for the Laravel PHP framework that connects applications to large language models through a single, consistent API. It is described as a way to bring LLMs into Laravel projects with syntax that feels native to the framework.
The package lets developers switch between providers such as OpenAI, Anthropic and Ollama without rewriting application code. A fluent, chainable interface handles text generation, and custom tools let a model call external APIs or application logic. Structured output support turns model responses into strongly typed data with schema validation and object mapping, which suits applications that need dependable data rather than free text. Multi modal support covers text, images and audio through the same interface.
Testing is treated as a core concern. The package includes utilities for faking responses and detailed assertion helpers, so developers can unit test AI features without calling a live provider.
Prism is aimed at Laravel developers adding AI features to existing or new applications. The documentation site offers a Get Started guide, a GitHub repository and a Sponsor link. No pricing is published on the site, and the package is presented through its documentation and source repository rather than as a paid service.