Today we are happy to announce a new Symfony initiative called Symfony AI - with the goal to provide a comprehensive set of components and bundles designed to bring powerful AI capabilities directly into your PHP applications.
Similar to the UX initiative, Symfony AI lives in the separate mono-repository symfony/ai, which enables us to level up this new set of libraries as fast as the AI ecosystem itself. All components and bundles are currently under active development and not yet ready to be released, but we decided to go public with this project now to invite you all to join forces in building a strong PHP ecosystem for AI. No matter if you are creating chatbots, implementing Retrieval-Augmented Generation, or building sophisticated AI agents, Symfony AI aims to give you the tools to get started quickly and well-integrated with your application.
Even if this is a new initiative and still experimental, we are not starting at zero, but we moved the PHP-LLM organization, a set of libraries and bundles, into the Symfony project.
Core Components & Bundles
Platform Component: A unified interface to major AI providers like OpenAI, Anthropic, Azure, Google, Mistral, and more. Write your code once and switch between AI platforms seamlessly.
Agent Component: A framework for building AI agents that can interact with users, call tools, and perform complex multi-step tasks. Perfect for creating sophisticated chatbots and automated workflows.
Store Component: Data storage abstraction with indexing and retrieval capabilities for AI applications. Ideal for implementing RAG (Retrieval-Augmented Generation) patterns and semantic search.
AI Bundle: Seamlessly integrates the Platform, Store, and Agent components into Symfony applications with configuration, dependency injection, and debugging tools.
MCP SDK: An implementation of the Model Context Protocol, enabling your applications to communicate with AI systems using the emerging industry standard.
MCP Bundle: Allows your Symfony applications to act as MCP servers or clients, opening up new possibilities for AI integration and tool creation.
Getting Started
If you are eager to get on that journey with us, the best way to start is to check out our examples and demo application to see Symfony AI in action. Especially the demo showcases more advanced use-cases combining multiple components and Symfony UX at once.
To get more pointers were to start contributing to this project, check the issue tracker: Ideas & Plans for this Project Models, Platforms & Stores Support
And of course, you can add your ideas, provide feedback or join discussions.
This is great!
Very nice ! Great work ! The link to the MCP Bundle is wrong and points to the AI Bundle.
@Thomas fixed! Thanks.
Amazing! 🙌
For me Python remains the best language for handling complex AI challenges due to its simplicity and its rich ecosystem of specialized libraries such as TensorFlow, PyTorch, scikit-learn, LangChain, Hugging Face, and more. Additionally, its vibrant community drives rapid innovation and seamless integration of advanced AI solutions.
Great work !
Currently I use https://github.com/php-llm and its Symfony bundle and it's allright.
@Lionel nice! Your migration will be very smooth because, as mentioned in the blog post, the new AI components were imported from the PHP-LLM project. Going forward, the PHP-LLM packages will be deprecated, and all development will continue under the Symfony organization.
Have you seen the work we've been doing in Drupal at https://new.drupal.org/ai ?
Is it worth collaborating or discussion areas where things we're doing in Drupal would make sense to bring into symfony? We've been talking to the Wordpress AI people and CiviCRM people a bit about areas of collaboration too.
Good initiative 👏
Excellent ! I was just looking for such a component for current project. Will try it soon !
Great
This is great!!!