# Event Sourcing PHP

Store events instead of current state — get a full audit trail and rebuildable read models for free.

## Demo

{% embed url="<https://github.com/ecotoneframework/quickstart-examples/tree/main/EventSourcing>" %}

{% embed url="<https://github.com/ecotoneframework/quickstart-examples/tree/main/StatefulProjection>" %}

## Read Blog Post

[Implementing Event Sourcing Application in 15 minutes](https://blog.ecotone.tech/implementing-event-sourcing-php-application-in-15-minutes/)

[Read more about Event Sourcing in PHP and Ecotone](https://blog.ecotone.tech/starting-with-event-sourcing-in-php/)


---

# Agent Instructions: 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/quick-start-php-ddd-cqrs-event-sourcing/event-sourcing-php.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.
