awd-studio/es-lib-bundle

A symfony bundle for the AWD event-sourcing library

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.0.7-alpha 2025-03-22 10:39 UTC

This package is auto-updated.

Last update: 2025-03-22 10:40:22 UTC


README

ES Lib Bundle is a Symfony bundle that brings the power of the es-lib event-sourcing library into your Symfony applications. It simplifies the integration of event-sourcing by leveraging Symfony’s dependency injection, configuration system, and Doctrine ORM for event storage. Whether you're building scalable systems or need a reliable audit trail, this bundle makes it easy to implement event-sourcing patterns.

Features

  • Event Sourcing Made Simple: Integrates es-lib for managing aggregates, events, and repositories.
  • Dependency Injection: Automatically wires up es-lib services and bundle-specific services for seamless use.
  • Event Storage: Supports Doctrine ORM with configurable drivers (e.g., SQLite, MySQL) for persisting events.
  • Aggregate Management: Provides pre-configured repositories to load and save aggregates effortlessly.
  • Flexible Configuration: Customize the bundle to fit your application’s database and event store needs.

Requirements

  • PHP 8.3 or higher
  • Symfony 7.2 or higher
  • Doctrine ORM (installed via symfony/orm-pack)

Installation

Install the bundle using Composer:

composer require awd-studio/es-lib-bundle

Enable the Bundle

Register the bundle in your Symfony application by adding it to config/bundles.php:

return [
    // Other bundles...
    AwdStudio\EsLibBundle\AwdEsBundle::class => ['all' => true],
];

Support

For help or to report issues, visit the GitHub repository and open an issue.

License

This bundle is released under the MIT License. See the LICENSE file for more information.