PHPackages                             mauretto78/simple-event-store-manager-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mauretto78/simple-event-store-manager-bundle

ActiveSymfony-bundle

mauretto78/simple-event-store-manager-bundle
============================================

PHP Bundle

v2.0.2(8y ago)013[1 PRs](https://github.com/mauretto78/simple-event-store-manager-bundle/pulls)MITPHP

Since Jul 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mauretto78/simple-event-store-manager-bundle)[ Packagist](https://packagist.org/packages/mauretto78/simple-event-store-manager-bundle)[ Docs](https://github.com/mauretto78/simple-event-store-manager-bundle)[ RSS](/packages/mauretto78-simple-event-store-manager-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (13)Used By (0)

Simple EventStore Manager Bundle
================================

[](#simple-eventstore-manager-bundle)

[![Codacy Badge](https://camo.githubusercontent.com/52b5d18698fbc320c9cebb6f3f0f8bc058dd2637a3b86bdfe4a54e0266178cf8/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3432316564346661623639633437303261623364326665633430653361616134)](https://www.codacy.com/app/mauretto78/simple-event-store-manager-bundle?utm_source=github.com&utm_medium=referral&utm_content=mauretto78/simple-event-store-manager-bundle&utm_campaign=Badge_Grade)![license](https://camo.githubusercontent.com/34644a79216e7311cfbad99d46a49f50ed0e643c87cd5773567073bf70846bbd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6175726574746f37382f73696d706c652d6576656e742d73746f72652d6d616e616765722d62756e646c652e737667)![Packagist](https://camo.githubusercontent.com/41ac72b0c115cb40170c1b9236e7ec60aae5f3d35091291fa35f34c87e737d3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6175726574746f37382f73696d706c652d6576656e742d73746f72652d6d616e616765722d62756e646c652e737667)

This is the official Symfony bundle for [Simple EventStore Manager package](https://github.com/mauretto78/simple-event-store-manager).

Install Guide
-------------

[](#install-guide)

#### Step 1: Include Simple EventStore Manager Bundle in your project with composer:

[](#step-1-include-simple-eventstore-manager-bundle-in-your-project-with-composer)

```
composer require mauretto78/simple-event-store-manager-bundle
```

#### Step 2: Setup your config.yml to configure your driver and connection parameters

[](#step-2-setup-your-configyml-to-configure-your-driver-and-connection-parameters)

Here is an example:

```
# Simple EventStore Manager
simple_event_store_manager:
    driver: 'mongo'
    api_format: 'yaml'
    parameters:
        host: 'localhost'
        username: ~
        password: ~
        database: 'eventstore_demo'
        port: '27017'
    return_type: 'array'
    elastic:
        host: 'localhost'
        port: '9200'
```

- `return_type` is an optional parameter; you can choose between array or object to return aggregates
- `api_format` is an optional parameter; you can choose between `json` (default), `xml` or `yaml`
- `elastic` is an optional parameter; you can send your events to a Elastic server

Please refer to [Simple EventStore Manager page](https://github.com/mauretto78/simple-event-store-manager) for more details.

#### Step 3: Setup your AppKernel.php by adding the Simple EventStore Manager Bundle

[](#step-3-setup-your-appkernelphp-by-adding-the-simple-eventstore-manager-bundle)

```
// ..
$bundles[] = new SimpleEventStoreManager\Bundle\SimpleEventStoreManagerBundle();
```

#### Step 4: Setup yor routing.yml

[](#step-4-setup-yor-routingyml)

Add these lines at the bottom of your `routing.yml` file:

```
_simple_event_store_manager:
    resource: '@SimpleEventStoreManagerBundle/Resources/config/routing.yml'
```

Usage Guide
-----------

[](#usage-guide)

You can use `EventsManager` in your Controllers:

```
// ..

$manager = $this->container->get('simple_event_store_manager');
$eventManager = $manager->getEventMananger();

// store events in an aggregate
$eventManager->storeEvents(
    'name-of-your-aggregate',
    [
        ...
    ]
);

// get event streams
$eventQuery = $eventStoreManager->getEventQuery();

$stream = $eventQuery->fromAggregate('Your aggregate');
foreach ($stream as $event){
    // ..
}
```

Or inject it into your services and classes:

```
services:
     # ...

     AppBundle\Your\Service:
         arguments: ['@simple_event_store_manager']

```

Please refer to [official documentation of Simple EventStore Manager](https://github.com/mauretto78/simple-event-store-manager) for basic usage of this Library.

API support
-----------

[](#api-support)

An API endpoint is automatically exposed to `/_events/{aggregate}/{page}` route; it will automatically paged with **25 records per page**.

When a page is complete, it will set automatically an infinite cache on it.

Support
-------

[](#support)

If you found an issue or had an idea please refer [to this section](https://github.com/mauretto78/simple-event-store-manager-bundle/issues).

Authors
-------

[](#authors)

- **Mauro Cassani** - [github](https://github.com/mauretto78)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity70

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~13 days

Total

12

Last Release

3155d ago

Major Versions

v1.1.2 → v2.0.02017-08-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a9a5d92c7a88371bdc4b5f7fb7ff9c4fe890289b970d53486ca455700614df7?d=identicon)[mauretto78](/maintainers/mauretto78)

---

Tags

domain-driven-designevent-sourcingphpsymfony-bundlephpsymfonybundleeventsDomain Driven Designevent sourcing

### Embed Badge

![Health badge](/badges/mauretto78-simple-event-store-manager-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mauretto78-simple-event-store-manager-bundle/health.svg)](https://phpackages.com/packages/mauretto78-simple-event-store-manager-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[harmbandstra/swagger-ui-bundle

Exposes swagger UI inside your Symfony project through a route (eg. /docs)

42867.3k](/packages/harmbandstra-swagger-ui-bundle)[sineflow/clamav

ClamAV PHP Client for Symfony

10168.5k](/packages/sineflow-clamav)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1714.8k8](/packages/2lenet-crudit-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
