Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Ollama Laravel

Ollama Laravel Laravel Package

cloudstudio/ollama-laravel

A Laravel package for integrating Ollama and running local LLMs in your PHP apps. Send chat and completion requests, manage models, and add AI features without relying on external APIs.

View on GitHub
Deep Wiki
Context7

Ollama-Laravel is a Laravel package providing seamless integration with the Ollama API.

Frequently asked questions about Ollama Laravel
How do I install cloudstudio/ollama-laravel in a Laravel app?
Install it with Composer using composer require cloudstudio/ollama-laravel. Laravel's package auto-discovery registers the service provider, and you can publish the package configuration if you need to customize defaults. After that, set your Ollama endpoint and model values in your environment or config files before making your first request.
Does cloudstudio/ollama-laravel support Laravel 13?
Version 1.3.0 adds Laravel 13 support in composer.json, making it the version to evaluate if you plan to adopt Laravel 13. The release is described as a compatibility update with no runtime-breaking changes indicated. Always check the Composer constraints to confirm that upgrading the package does not force an unintended framework upgrade in your application.
What Laravel and PHP versions does v1.3.0 require?
The package targets Laravel applications, and v1.3.0 expands the constraint to include Laravel 13. The exact PHP requirement follows from the Laravel framework version you install, so review composer.json and your dependency lock before rolling out. Test in a branch that matches your target Laravel and PHP runtime.
Do I need to run an Ollama server alongside my Laravel app?
Yes. The package is a framework-native wrapper around the Ollama API and does not provide hosted inference, so you must operate an Ollama runtime that your application can reach. That runtime becomes an operational dependency for model availability, CPU or GPU capacity, request timeouts, and network reachability.
How do I configure the Ollama endpoint or base URL?
Configuration is handled the Laravel way: publish the package config and set the Ollama base URL and default model through environment variables or config files. Keep endpoint and model values out of application code so you can change environments without a deploy. Confirm the exact config keys in the package documentation before wiring it into services.
Does the package support streaming responses and embeddings?
The package overview highlights chat and completion requests plus model management. Streaming and embeddings support is not confirmed by the release assessment, so check the repository documentation and source before designing features around them. If you need them, verify behavior against your Ollama version in staging first.
Is upgrading from v1.2.0 to v1.3.0 safe, or are there breaking changes?
The v1.2.0 to v1.3.0 change surface is small and appears non-breaking, mainly Laravel 13 support in composer.json plus a README banner. Review the diff and changelog, confirm Composer constraints, and run your test suite before upgrading. Pin the version in a non-production branch first if you are cautious.
Can I call the package directly from controllers, or should I use jobs and queues?
For latency-sensitive or business-critical AI features, call the package behind an application service or a queued job rather than directly from controllers. That lets you control timeouts, retries, and queue behavior, and keeps Ollama-specific code out of your HTTP layer. Start with one low-risk use case and migrate gradually.
How should I test and roll out the package in production?
Validate in a staging environment that runs the same Ollama version and models as production. Run unit and integration tests plus a smoke test against a non-production Ollama endpoint, and verify timeout, retry, and queue behavior for representative prompts. Deploy only after confirming no Laravel or PHP constraint conflicts.
How do I manage Ollama models with this package?
The package exposes model management alongside chat and completion requests, so you can work with models through the package API instead of raw HTTP calls. Exact methods and capabilities should be confirmed in the package documentation for v1.3.0. Keep model names in configuration so you can switch models per environment.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons