ollama/php
Composer 安装命令:
composer require ollama/php
包简介
A lightweight PHP client for the Ollama API.
README 文档
README
A lightweight PHP client for the Ollama API.
🦙 + 🐘 = ❤️
Installation
composer require ollama/php --prefer-dist
Quick Start
use Ollama\Ollama; $ollama = new Ollama; $response = $ollama->chat()->send([ 'model' => 'gemma4:12b', 'messages' => [ ['role' => 'user', 'content' => 'Hello world!'], ], ]); echo $response->message->content;
Examples 👀
There are many, many examples for each endpoint in the examples folder, come and explore!
License
MIT
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-29