symfony/ai-open-router-platform
Symfony AI bridge for the OpenRouter platform. Provides integration for chat completions (including streaming), model listing, and rerank requests via OpenRouter’s API, enabling Symfony apps to access multiple LLM providers through a single gateway.
openrouter/free) for prototyping and low-volume use cases, reducing upfront costs before scaling to paid tiers. Supports pay-as-you-go AI strategies.Adopt When:
symfony/http-client, symfony/ai) or can tolerate minor dependencies.openrouter/free) suffice.Look Elsewhere If:
laravel-ai).0.9.x), and OpenRouter’s API may evolve rapidly.For Executives: *"This package lets us integrate OpenRouter’s AI capabilities into our Laravel app with minimal effort—enabling features like real-time chat, smart search, and multi-provider flexibility without building custom integrations. It’s a low-risk, high-reward move:
For Engineering: *"Here’s why this is a smart choice for OpenRouter in Laravel:
AiClient—no more direct API calls or manual JSON parsing.openrouter/free to paid tiers) via config, thanks to Symfony’s Provider abstraction.OpenRouterClient as a Laravel service with minimal glue code.// config/services.php
'openrouter' => [
'api_key' => env('OPENROUTER_API_KEY'),
'default_model' => 'openrouter/free',
'providers' => [
'openrouter' => OpenRouterProvider::class,
'mistral' => MistralProvider::class, // Future-proofing
],
],
0.9.0) to avoid breaking changes.For Product Managers: *"This package supports our AI roadmap with minimal dev effort. Key wins:
openrouter/free for low-cost, high-quality responses.How can I help you explore Laravel packages today?