juststeveking/ollama-php
A PHP SDK for working with Ollama, making it easy to run and interact with local large language models. Provides a clean API for text generation, chat, embeddings, and model management in your Laravel or PHP applications.
Architecture fit
LlmClient contract, not direct SDK calls scattered across controllers, jobs, and Livewire components. The package provides transport; the team owns the interface, prompt templates, DTOs, and provider-selection logic. This is the single most important architectural decision to force early, because it keeps the build-vs-buy and multi-provider options open at later phases.Integration feasibility
Technical risk
Key questions to resolve before adoption
Stack fit
Feature code → LlmService (our prompts, guardrails, logging, metrics) → LlmClient contract → Ollama adapter (this package) | Hosted adapter (future).Migration path
LlmClient, request/response DTOs, prompt templates, and the adapter boundary. Pin the exact package version. Vendor or note intent to vendor.Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?