> For the complete documentation index, see [llms.txt](https://docs.ecotone.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecotone.tech/modules/symfony.md).

# Symfony

Ecotone builds on top of your Symfony application — **Doctrine ORM** for aggregate persistence, **Symfony Messenger Transport** for async message channels, and standard **Bundle configuration**. Everything you know stays, enterprise patterns get added.

## Installation

Follow Installation from [Installation menu](/install-php-service-bus.md#install-for-symfony).

{% hint style="success" %}
Ecotone by design looking for Attributes in default Symfony catalog **"src".**\
If your code is kept inside other catalog, provide [namespaces](#namespaces) configuration to load it up.
{% endhint %}

## Materials

### Demo implementation

* [Full Application with UI and integration between Symfony and Laravel](https://github.com/ecotoneframework/php-ddd-cqrs-event-sourcing-symfony-laravel-ecotone)
* [Working with Message Bus (Command/Query Buses) in Symfony](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Symfony/MessageBus)
* [Publishing and consuming Events In Symfony](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Symfony/Events)
* [Working with Asynchronous Events in Symfony](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Symfony/AsynchronousEvents)
* [Working with Doctrine ORM as DDD Aggregate in Symfony](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Symfony/Aggregate)
* [Building Event Sourced Applications in Symfony](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Symfony/EventSourcing)
* [Multi-Tenant Examples in Symfony](https://github.com/ecotoneframework/quickstart-examples/tree/main/MultiTenant/Symfony)

### Links

* [Build Symfony and Doctrine ORM Applications with ease](https://blog.ecotone.tech/build-symfony-application-with-ease-using-ecotone/) \[Article]
* [Building Symfony and Doctrine ORM Applications with Ecotone](/modelling/event-sourcing/setting-up-projections/event-streams-and-handlers.md) \[Documentation]


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ecotone.tech/modules/symfony.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
