symfony/ai-gemini-platform
Symfony AI bridge for Google’s Gemini platform. Integrates Gemini generateContent (incl. streaming) and embeddings APIs, linking to official docs and API reference. Includes licensed media fixtures for tests and points to the main Symfony AI repo for issues/PRs.
gemini-3.1-pro-preview, multimodal support) are critical differentiators for competitive advantage.gemini-3-flash-preview for low-latency tasks) via the Provider abstraction, reducing cloud costs.pgvector, Pinecone) to power semantic search or personalized recommendations.gemini-3.1-pro-preview and gemini-3-flash-preview based on cost/performance).python-aiplatform for Python).llm-php or symfony/ai-openai-platform).HttpClient, Messenger, or dependency injection.For Executives: "This package enables us to integrate Google Gemini’s advanced AI—including multimodal (images, audio, text) and real-time streaming capabilities—into our Laravel applications with minimal development effort. It’s a strategic ‘buy’ to accelerate features like AI-powered search, chatbots, or document analysis, while avoiding the cost and risk of custom API integrations. The Provider abstraction even allows us to dynamically switch models (e.g., for cost/performance optimization) without rewriting code. Given Gemini’s leadership in multimodal AI, this could be a key differentiator for [specific product feature]."
For Engineering (Tech Leads/Architects): *"Symfony’s Gemini bridge provides:
ServerTool).gemini-3.1-pro or flash-preview models via configuration, enabling cost optimization.For Developers:
*"Drop-in replacement for OpenAI bridges—just swap OpenAiClient for GeminiClient and use the same generateContent() method. Supports:
generateContent(['text': 'Summarize this', 'file': $pdf])).batchEmbedContents([$text1, $text2])).ServerTool.
Gotchas:DeltaInterface chunks (but Symfony’s StreamingMiddleware helps).For Product Managers: *"This enables us to:
gemini-3.1-pro-preview) that competitors using OpenAI/Mistral might lack.gemini-3-flash-preview) via the Provider abstraction.How can I help you explore Laravel packages today?