PHPackages                             hanwoolderink/ollama-laravel-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. hanwoolderink/ollama-laravel-client

ActiveLibrary

hanwoolderink/ollama-laravel-client
===================================

Ollama laravel client

v1.0.0(1y ago)128MITPHPPHP ^8.3

Since Sep 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hanwoolderink88/ollama-laravel-client)[ Packagist](https://packagist.org/packages/hanwoolderink/ollama-laravel-client)[ RSS](/packages/hanwoolderink-ollama-laravel-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Ollama Laravel client
=====================

[](#ollama-laravel-client)

Laravel client for the Ollama API using

For more information see:

- [Ollama API documentation](https://github.com/ollama/ollama/blob/main/docs/api.md)
- [Ollama php client](https://github.com/hanwoolderink88/ollama-php-client)

Installation
------------

[](#installation)

```
composer require hanwoolderink/ollama-laravel-client
```

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish
```

Usage
-----

[](#usage)

Basic usage example:

```
use Hanwoolderink\Ollama\Laravel\Facades\Ollama;

$response = Ollama::chat()->create(
  model: 'llama3.1:latest',
  message: Message::make('Why is the sky blue?')
);

echo $response->message->content;
```

Stream example:

```
use Hanwoolderink\Ollama\Laravel\Facades\Ollama;
use Hanwoolderink\Ollama\Dtos\Message;

$response = Ollama::chat()->stream(
    model: 'llama3.1:latest',
    messages: [
        Message::make('Why does the sky appear more blue in the morning and more red in the evening?')
    ],
);

foreach ($response as $streamResponse) {
    // update storage, socket, etc.. This prints to cli
    $stream = fopen('php://stdout', 'w');
    fwrite($stream, $streamResponse->message->content);
    fclose($stream);
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

614d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e21d68868f5e1e62a481d758b74625415ac0667d41ce3b58f90ce6e2632f99d?d=identicon)[hanw](/maintainers/hanw)

### Embed Badge

![Health badge](/badges/hanwoolderink-ollama-laravel-client/health.svg)

```
[![Health](https://phpackages.com/badges/hanwoolderink-ollama-laravel-client/health.svg)](https://phpackages.com/packages/hanwoolderink-ollama-laravel-client)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
