https://github.com/symfony/ai
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/symfony/ai
- Owner: symfony
- License: mit
- Created: 2025-04-17T08:55:28.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-07-11T11:25:58.000Z (7 months ago)
- Last Synced: 2025-07-11T14:03:50.582Z (7 months ago)
- Language: PHP
- Size: 3.6 MB
- Stars: 41
- Watchers: 14
- Forks: 5
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-php-ml - symfony/ai - in AI components and bundles for Symfony apps (Symfony & Framework Integrations / Search & vector search)
README
Symfony AI
Symfony AI is a set of components that integrate AI capabilities into PHP applications.
## Components & Bundles
Symfony AI consists of several lower and higher level **components** and the respective integration **bundles**:
* **Components**
* **[Platform](src/platform/README.md)**: A unified interface to various AI platforms like OpenAI, Anthropic, Azure, Google, and more.
* **[Agent](src/agent/README.md)**: Framework for building AI agents that can interact with users and perform tasks.
* **[Store](src/store/README.md)**: Data storage abstraction with indexing and retrieval for AI applications.
* **[MCP SDK](src/mcp-sdk/README.md)**: SDK for [Model Context Protocol](https://modelcontextprotocol.io) enabling communication between AI agents and tools.
* **Bundles**
* **[AI Bundle](src/ai-bundle/README.md)**: Symfony integration for AI Platform, Store and Agent components.
* **[MCP Bundle](src/mcp-bundle/README.md)**: Symfony integration for MCP SDK, allowing them to act as MCP servers or clients.
## Examples & Demo
To get started with Symfony AI, you can either check out the [examples](./examples) to see how to use the
components in smaller snippets, or you can run the [demo application](./demo) to see the components work together in a
full Symfony web application.
## Sponsor
Help Symfony by [sponsoring](https://symfony.com/sponsor) its development!
## Contributing
Thank you for considering contributing to Symfony AI! You can find the [contribution guide here](CONTRIBUTING.md).
## Fixture Licenses
For testing multi-modal features, the repository contains binary media content, with the following owners and licenses:
* `tests/Fixture/image.jpg`: Chris F., Creative Commons, see [pexels.com](https://www.pexels.com/photo/blauer-und-gruner-elefant-mit-licht-1680755/)
* `tests/Fixture/audio.mp3`: davidbain, Creative Commons, see [freesound.org](https://freesound.org/people/davidbain/sounds/136777/)
* `tests/Fixture/document.pdf`: Chem8240ja, Public Domain, see [Wikipedia](https://en.m.wikipedia.org/wiki/File:Re_example.pdf)