Download the PHP package hameleon2x/llm-orchestra without Composer
On this page you can find all versions of the php package hameleon2x/llm-orchestra. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hameleon2x/llm-orchestra
More information about hameleon2x/llm-orchestra
Files in hameleon2x/llm-orchestra
Download hameleon2x/llm-orchestra
More information about hameleon2x/llm-orchestra
Files in hameleon2x/llm-orchestra
Vendor hameleon2x
Package llm-orchestra
Short Description PHP LLM client with a model catalog (OpenAI, OpenRouter, Requesty), retries and fallback models, typed errors, agent loop with tool calling and PSR-3 logging. Framework-agnostic, no SDK dependencies. PHP 7.4+.
License MIT
Homepage https://github.com/Hameleon2x/llm-orchestra
Package llm-orchestra
Short Description PHP LLM client with a model catalog (OpenAI, OpenRouter, Requesty), retries and fallback models, typed errors, agent loop with tool calling and PSR-3 logging. Framework-agnostic, no SDK dependencies. PHP 7.4+.
License MIT
Homepage https://github.com/Hameleon2x/llm-orchestra
Please rate this library. Is it a good library?
Informations about the package llm-orchestra
llm-orchestra
A PHP LLM client with a model catalog, retries and automatic switching to a backup model on failure, an agent loop with tool calling, typed errors and PSR-3 logging. Framework- and SDK-free — it talks to providers directly over ext-curl.
Installation
Minimal example
Everything beyond providers and models is optional: the fallback chain, retry policy, generation params, pricing and tags are added when you need them.
What's inside
- A model catalog. The provider is transport only; a model is a key, an API slug, its own params and policy. The same model behind two providers is two entries, so nothing gets mixed up. The config is validated as a whole at build time.
- Retries and backup models. A single retry level, tunable per error category, and one flat escalation chain per catalog.
- Typed errors. Category, HTTP status, provider code and raw body instead of parsing message text.
- A three-layer response. Typed data (
content,toolCalls,usage), normalized provider data (extra) and the raw payload (raw) — a new provider field never requires a library release. - An agent loop. Tool calls, turn and call limits, pausing for user input, events for your UI.
Documentation
- Send my first request — 01-getting-started.md
- Describe the model catalog and the fallback chain — 02-catalog-and-fallback.md
- Wire up PSR-3 logging (Monolog, Yii2, etc.) — 03-logging.md
- Write my own tool (function calling) — 04-tools.md
- Run the agent loop (tools + multiple turns) — 05-toolbox-and-runner.md
- Receive agent loop events (UI progress, DB logging) — 06-events.md
- Understand errors, retries and model switching — 10-error-handling.md
- Pause for user input and resume (human-in-the-loop) — 13-human-in-the-loop.md
- See the full documentation index — docs/README.md
Requirements
- PHP 7.4+
ext-curl,ext-json,ext-mbstringpsr/log^1.1 || ^2.0 || ^3.0
Tests
The checks live in tests/ and need nothing but the library itself:
Versioning
- CHANGELOG.md — per-release notes.
- UPGRADING.md — migration guide between versions.
License
MIT — see LICENSE.
All versions of llm-orchestra with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-curl Version *
ext-json Version *
ext-mbstring Version *
psr/log Version ^1.1 || ^2.0 || ^3.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
psr/log Version ^1.1 || ^2.0 || ^3.0
The package hameleon2x/llm-orchestra contains the following files
Loading the files please wait ...