Download the PHP package ndrstmr/steg without Composer
On this page you can find all versions of the php package ndrstmr/steg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package steg
🌊 Steg — The Local Inference Bridge for PHP
A lightweight, BC-stable PHP client for OpenAI-compatible inference servers. Built for local-first AI in production. Zero framework lock-in.
Quickstart
Why Steg?
| Steg | Symfony AI | openai-php/client | |
|---|---|---|---|
| Focus | Local inference | Multi-provider ecosystem | OpenAI Cloud |
| BC-Promise | ✅ from v1.0 | ❌ experimental | ✅ |
| Core dependencies | 2 (psr/log, http-contracts) |
15+ packages | 5+ packages |
| vLLM / Ollama | ✅ first-class | ⚠️ via Generic Bridge | ❌ not officially |
| Streaming | ✅ | ✅ | ✅ |
| Tool Calling | not in scope | ✅ (Agent framework) | ✅ |
| Symfony Bundle | optional (steg-bundle) |
integrated (ai-bundle) |
community bundle |
Steg is purpose-built for local inference deployments and provides a BC-promise that symfony/ai-platform does not (yet) offer.
Ideal as a stable fallback layer in production systems.
Supported Backends
| Backend | DSN Format | Status |
|---|---|---|
| vLLM | vllm://host:port/v1?model=name |
✅ Full support |
| Ollama | ollama://host:port?model=name |
✅ Full support |
| LiteLLM | litellm://host:port/v1?model=name |
✅ Full support |
| LocalAI | localai://host:port/v1?model=name |
✅ Full support |
| llama.cpp server | llama://host:port/v1?model=name |
✅ Full support |
| OpenAI (Cloud) | openai://api.openai.com/v1?model=gpt-4o&api_key=sk-... |
⚠️ Works, not core focus |
| Mock | mock://default |
✅ Tests & offline dev |
All backends share the same
OpenAiCompatibleClient— DSN prefixes are convenience aliases that resolve to the correctbase_urland default port.
Usage
Client creation
Completion methods
CompletionOptions presets
Server health and model list
Exception Handling
Testing with MockClient
Symfony Integration
Install the optional bundle for automatic DI configuration and a Symfony Profiler panel:
See docs/symfony-integration.md for full details.
Requirements
- PHP 8.4+
psr/log: ^3.0symfony/http-client-contracts: ^3.0symfony/http-client: 7.4.*(runtime, recommended)
Documentation
- Getting Started
- Configuration Reference
- Supported Backends
- Symfony Integration
License
Licensed under the European Union Public Licence v1.2 (EUPL-1.2).
Origin
Steg was built in a public sector context to solve a real problem: a stable, local LLM client for production use — without framework lock-in.
Built by 👾 public sector dev crew
Notice
This repository was developed with the assistance of AI code agents (Claude Code, Anthropic). The code was created as part of a development sprint and is not cleared for production use without prior review. Use at your own risk.
License: European Union Public Licence v. 1.2 (EUPL-1.2) — Copyright © 2026 Andreas Teumer