# symfony/ai

Symfony AI is a set of components that integrate AI capabilities into PHP applications

Repository: https://github.com/symfony/ai
Canonical: https://ross.abutalabs.com/products/symfony-ai
Homepage: https://ai.symfony.com/
Language: PHP
License: MIT
License Family: permissive
Topics: ai, php, symfony
Last push: 2026-09-02T17:29:28+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 100, longevity 35
- inputs: {"age_days": 503, "days_push": 0, "days_rel": 3, "gap_med": 11.0, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1191, forks 269 (observed 2026-09-03T02:15:18.327398+00:00)

## What it is
Symfony AI is a set of PHP components and Symfony bundles that integrate AI capabilities into PHP applications, including a unified interface to LLM providers (OpenAI, Anthropic, Gemini, Azure), an agent framework with tool calling, vector store abstraction for RAG, and MCP server/client support. It ships as decoupled components (Agent, Chat, Platform, Store, Mate) plus Symfony integration bundles.

## Use cases
- add LLM chat to a PHP application
- build AI agents with tool calling in Symfony
- implement RAG with vector stores in PHP
- expose an MCP server from a Symfony app
- unify multiple AI providers behind one interface
- connect coding assistants to a PHP codebase via MCP
- build multi-agent orchestration in PHP

## When to choose
- you are building a Symfony or PHP application that needs LLM features
- you want provider-agnostic model inference with streaming, structured output, and multi-modal support
- you need agents, tool calling, and RAG with Symfony-native YAML configuration and DI
- you want to build or consume MCP servers/clients in PHP

## When to avoid
- your stack is Python, Node.js, or another non-PHP ecosystem
- you need a standalone AI product rather than libraries to embed in an app
- you need production MCP tooling - the Mate component is explicitly development-only
- you need training or fine-tuning of models - this covers inference and integration only

## Facets
- artifact type: framework
- maturity: active
- function: agent-framework, llm-inference, rag, mcp, chatbot, sdk, vector-database
- domain: artificial-intelligence, large-language-models, web-development, developer-tools
- platform: php, self-hosted, cli
- tags: symfony, php, llm, openai, anthropic, tool-calling, multi-agent, vector-store, mcp-server, ai-bundle, ai-agents, retrieval-augmented-generation, web-server

## Member repositories
- symfony/ai (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:18.327398+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:24:04.675763+00:00, confidence not recorded.
  - readme: https://github.com/symfony/ai (fetched 2026-09-03T02:15:18.327398+00:00, sha b329127ac5ce)
  - homepage: https://ai.symfony.com/ (fetched 2026-08-29T12:31:00.561523+00:00, sha 9695f84aa3b8)
  - site_page: https://symfony.com/doc/current/ai/bundles/ai-bundle.html (fetched 2026-08-29T12:31:00.571761+00:00, sha b2e43115f837)
  - site_page: https://symfony.com/doc/current/ai/bundles/mcp-bundle.html (fetched 2026-08-29T12:31:00.574962+00:00, sha f27785b033e8)
  - site_page: https://symfony.com/doc/current/ai/components/mate.html (fetched 2026-08-29T12:31:00.578336+00:00, sha 0d2c19c6e6ad)
  - site_page: https://symfony.com/doc/current/ai/index.html (fetched 2026-08-29T12:31:00.581338+00:00, sha 70b6b1d38419)
- Data as of 2026-08-30T08:39:29.467469+00:00.
