> 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/tempest.md).

# Tempest

Ecotone integrates with your existing [Tempest](https://tempestphp.com) application — **Tempest active-record models** for aggregate persistence and your **Tempest database connection** reused for DBAL (outbox, event sourcing, multi-tenant). You keep Tempest's modern, attribute-first developer experience and add enterprise messaging architecture.

The same Ecotone code — aggregates, `#[CommandHandler]`, sagas, projections — runs on Tempest exactly as it does on Laravel, Symfony or Ecotone Lite.

## Installation

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

{% hint style="success" %}
By design, Ecotone auto-discovers Attributes in the PSR-4 roots of your Tempest application (for example `App\`) — no configuration file is required, and the `CommandBus`, `QueryBus` and `EventBus` gateways are injectable anywhere in your app.\
\
If you want to override what is scanned, provide a [namespaces](/modules/tempest/tempest-configuration.md#namespaces) configuration.
{% endhint %}

## Materials

### Demo implementation

* [Tempest Projection (Database Read Model)](https://github.com/ecotoneframework/quickstart-examples/tree/main/Tempest/Projection/DatabaseReadModel)
* [Tempest Model as DDD Aggregate](https://github.com/ecotoneframework/quickstart-examples/tree/main/Tempest/Model)


---

# 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:

```
GET https://docs.ecotone.tech/modules/tempest.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
