Prism is a powerful Laravel package for integrating Large Language Models (LLMs) into your applications. It provides a fluent interface for generating text, handling multi-step conversations, and utilizing tools with various AI providers.
$ npx -y skills add prism-php/prism --agent claude-code
Run the curl in your terminal, the rest in Claude Code.
What's inside
Prism is a powerful Laravel package for integrating Large Language Models (LLMs) into your applications. It provides a fluent interface for generating text, handling multi-step conversations, and utilizing tools with various AI providers. This way, you can focus on developing outstanding AI applications for your users without getting lost in the technical intricacies.
Official documentation can be found on the Prism website.
While we aren't affiliated with Laravel, we follow the Laravel Code of Conduct. We expect you to abide by these guidelines as well.
This library is created by TJ Miller with contributions from the Open Source Community.
The MIT License (MIT). Please see License File for more information.
.gitattributes
.github/
CONTRIBUTING.md
FUNDING.yml
pull_request_template.md
SECURITY.md
workflows/
formatting.yml
phpstan.yml
tests.yml
.gitignore
assets/
prism-banner.webp
prism-logo.webp
bin/
git-hooks/
formatting
composer.json
config/
prism.php
docs/
.gitignore
.vitepress/
.gitignore
config.mts
theme/
custom.css
HostedFooter.vue
index.js
advanced/
custom-providers.md
error-handling.md
provider-interoperability.md
rate-limits.md
components/
ExceptionSupport.vue
ProviderSupport.vue
core-concepts/
audio.md
embeddings.md
image-generation.md
moderation.md
prism-server.md
schemas.md
streaming-output.md
structured-output.md
testing.md
text-generation.md
tools-function-calling.md
documentation-style-guide.md
getting-started/
configuration.md
installation.md
introduction.md
index.md
input-modalities/
audio.md
documents.md
images.md
video.md
package-lock.json
package.json
providers/
anthropic.md
deepseek.md
elevenlabs.md
gemini.md
groq.md
mistral.md
ollama.md
openai.md
openrouter.md
perplexity.md
providers.md.template
voyageai.md
xai.md
z.md
public/
assets/
hosted-on-sevalla.png
og-image.png
prism-logo.webp
sevalla.png
favicon.ico
storage/
diamond.png
prism-text-generation.pdf
README.md
LICENSE
phpstan.neon.dist
phpunit.xml.dist
pint.json
README.md
rector.php
resources/
boost/
guidelines/
core.blade.php
skills/
developing-with-prism/
references/
relay.md
SKILL.md
src/
.gitkeep
Audio/
AudioResponse.php
PendingRequest.php
SpeechToTextRequest.php
TextResponse.php
TextToSpeechRequest.php
Concerns/
CallsTools.php
ChecksSelf.php
ConfiguresClient.php
ConfiguresGeneration.php
ConfiguresModels.php
ConfiguresProviders.php
ConfiguresStructuredOutput.php
ConfiguresTools.php
GeneratesAudioFilename.php
HandlesStructuredJson.php
HasFluentAttributes.php
HasMessages.php
HasPrompts.php
HasProviderOptions.php
HasProviderTools.php
HasSchema.php
HasTools.php
InitializesClient.php
ManagesStructuredSteps.php
NullableSchema.php
Contracts/
HasSchemaType.php
Message.php
PrismRequest.php
ProviderMediaMapper.php
ProviderRequestMapper.php
Schema.php
Embeddings/
Content.php
PendingRequest.php
Request.php
Response.php
Enums/
Citations/
CitationSourcePositionType.php
CitationSourceType.php
FinishReason.php
Provider.php
StreamEventType.php
StructuredMode.php
ToolChoice.php
Events/
Broadcasting/
ArtifactBroadcast.php
CitationBroadcast.php
ErrorBroadcast.php
ProviderToolEventBroadcast.php
StepFinishBroadcast.php
StepStartBroadcast.php
StreamEndBroadcast.php
StreamEventBroadcast.php
StreamStartBroadcast.php
TextCompleteBroadcast.php
TextDeltaBroadcast.php
TextStartBroadcast.php
ThinkingBroadcast.php
ThinkingCompleteBroadcast.php
ThinkingStartBroadcast.php
ToolCallBroadcast.php
ToolCallDeltaBroadcast.php
ToolResultBroadcast.php
Exceptions/
PrismException.php
PrismProviderOverloadedException.php
PrismRateLimitedException.php
PrismRequestTooLargeException.php
PrismServerException.php
PrismStreamDecodeException.php
PrismStructuredDecodingException.php
Facades/
Prism.php
PrismServer.php
Tool.php
helpers.php
Http/
Controllers/
PrismChatController.php
PrismModelController.php
Images/
PendingRequest.php
Request.php
Response.php
ResponseBuilder.php
Moderation/
PendingRequest.php
Request.php
Response.php
Prism.php
PrismManager.php
PrismServer.php
PrismServiceProvider.php
Providers/
Anthropic/
Anthropic.php
Concerns/
ExtractsCitations.php
ExtractsProviderToolCalls.php
ExtractsText.php
ExtractsThinking.php
HandlesHttpRequests.php
NormalizesCacheControl.php
ProcessesRateLimits.php
Enums/
AnthropicCacheType.php
Handlers/
Stream.php
Structured.php
StructuredStrategies/
AnthropicStructuredStrategy.php
JsonModeStructuredStrategy.php
NativeOutputFormatStructuredStrategy.php
ToolStructuredStrategy.php
Text.php
Maps/
CitationsMapper.php
DocumentMapper.php
FinishReasonMap.php
ImageMapper.php
MessageMap.php
ToolChoiceMap.php
ToolMap.php
Parsers/
StreamEventParser.php
ValueObjects/
AnthropicStreamState.php
LegacyAnthropicCitation.php
LegacyAnthropicMessagePartWithCitations.php
DeepSeek/
Concerns/
MapsFinishReason.php
ValidatesResponses.php
DeepSeek.php
Handlers/
Stream.php
Structured.php
Text.php
Maps/
FinishReasonMap.php
ImageMapper.php
MessageMap.php
ToolCallMap.php
ToolChoiceMap.php
ToolMap.php
ElevenLabs/
ElevenLabs.php
Handlers/
Audio.php
Maps/
TextToSpeechRequestMapper.php
Gemini/
Concerns/
ValidatesResponse.php
Gemini.php
Handlers/
Audio.php
Cache.php
Embeddings.php
Images.php
Stream.php
Structured.php
Text.php
TextToSpeechRequestMapper.php
Maps/
AudioVideoMapper.php
CitationMapper.php
DocumentMapper.php
FinishReasonMap.php
ImageMapper.php
ImageRequestMap.php
MessageMap.php
SchemaMap.php
SearchGroundingMap.php
ToolCallMap.php
ToolChoiceMap.php
ToolMap.php
Support/
MediaUrlDetector.php
ValueObjects/
GeminiCachedObject.php
MessagePartWithSearchGroundings.php
SearchGrounding.php
Groq/
Concerns/
ProcessRateLimits.php
ValidateResponse.php
Groq.php
Handlers/
Audio.php
Stream.php
Structured.php
Text.php
Maps/
FinishReasonMap.php
ImageMapper.php
MessageMap.php
TextToSpeechRequestMapper.php
ToolChoiceMap.php
ToolMap.php
Mistral/
Concerns/
ExtractsText.php
ExtractsThinking.php
MapsFinishReason.php
ProcessRateLimits.php
ValidatesResponse.php
Handlers/
Audio.php
Embeddings.php
OCR.php
Stream.php
Structured.php
Text.php
Maps/
DocumentMapper.php
FinishReasonMap.php
ImageMapper.php
MessageMap.php
ToolChoiceMap.php
ToolMap.php
Mistral.php
ValueObjects/
OCRPageResponse.php
OCRResponse.php
Ollama/
Concerns/
MapsFinishReason.php
ValidatesResponse.php
Handlers/
Embeddings.php
Stream.php
Structured.php
Text.php
Maps/
FinishReasonMap.php
ImageMapper.php
MessageMap.php
ToolMap.php
Ollama.php
ValueObjects/
OllamaStreamState.php
OpenAI/
Concerns/
BuildsTools.php
ExtractsCitations.php
MapsFinishReason.php
ProcessRateLimits.php
ValidatesResponse.php
Handlers/
Audio.php
Embeddings.php
Images.php
Moderation.php
Stream.php
Structured.php
Text.php
Maps/
CitationsMapper.php
DocumentMapper.php
FinishReasonMap.php
ImageMapper.php
ImageRequestMap.php
MessageMap.php
ProviderToolCallMap.php
TextToSpeechRequestMapper.php
ToolCallMap.php
ToolChoiceMap.php
ToolMap.php
OpenAI.php
Support/
StructuredModeResolver.php
OpenRouter/
Concerns/
BuildsRequestOptions.php
MapsFinishReason.php
ValidatesResponses.php
Handlers/
Embeddings.php
Stream.php
Structured.php
Text.php
Maps/
AudioMapper.php
DocumentMapper.php
FinishReasonMap.php
ImageMapper.php
MessageMap.php
ToolCallMap.php
ToolChoiceMap.php
... 774 moreFAQ
prism is a Claude Code plugin with 1 hand-picked skill for development work, indexed on Flowy. Install it with the command on its page. It includes developing-with-prism. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.