Download the PHP package token27/nexus-ai without Composer
On this page you can find all versions of the php package token27/nexus-ai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download token27/nexus-ai
More information about token27/nexus-ai
Files in token27/nexus-ai
Package nexus-ai
Short Description Framework-agnostic AI communication engine with middleware pipeline architecture
License MIT
Homepage https://github.com/token27/nexus-ai
Informations about the package nexus-ai
NexusAI
A framework-agnostic PHP 8.2+ library for communicating with AI providers. Supports text generation, image generation, embeddings, speech synthesis, transcription, streaming, tool calling, and structured output — through a unified, PSR-18 compliant interface.
Supported Providers
OpenAI · Anthropic · Google Gemini · Ollama · DeepSeek · Groq · Mistral · xAI · Perplexity
Features
- Text generation with full conversation history support
- Image generation (DALL-E 3, Imagen)
- Text embeddings with batch support
- Text-to-Speech and Speech-to-Text (Whisper)
- Streaming via Server-Sent Events with typed chunks
- Structured output — maps LLM responses directly to PHP DTOs
- Tool calling with multi-step execution loops
- Chat history — in-memory and file-based persistence
- Middleware pipeline — Retry, Cache, Cost tracking, Rate limiting, Circuit breaker, Logging
- Observability — EventBus with pluggable observers and metrics
- FakeDriver for unit testing without API calls
Installation
Requires a PSR-18 HTTP client:
Quick Start
Documentation
Full documentation is available in the docs/ directory:
- Installation & Setup
- Configuration
- Text Generation
- Image Generation
- Embeddings
- Audio — TTS & STT
- Structured Output
- Streaming
- Tool Calling
- Chat History
- Middleware Pipeline
- Observability
- Testing
- Troubleshooting
Requirements
- PHP 8.2 or higher
- A PSR-18 HTTP client
- PSR-17 HTTP factories
Contributing
Please see docs/contributing.md for details.
License
MIT. Please see LICENSE for more information.
All versions of nexus-ai with dependencies
psr/http-message Version ^2.0
psr/log Version ^3.0
psr/simple-cache Version ^3.0
token27/nexus-ai-pricing Version ^1.0