PHPackages                             wallsfantasy/event-store-laravel-package - 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. [API Development](/categories/api)
4. /
5. wallsfantasy/event-store-laravel-package

ActiveLibrary[API Development](/categories/api)

wallsfantasy/event-store-laravel-package
========================================

A package for using the event store in a Laravel project

v1.0.0(7y ago)027BSD-3-ClausePHPPHP ^7.1

Since Aug 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wallsfantasy/event-store-laravel-package)[ Packagist](https://packagist.org/packages/wallsfantasy/event-store-laravel-package)[ RSS](/packages/wallsfantasy-event-store-laravel-package/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (2)Used By (0)

Laravel Event Store Package
===========================

[](#laravel-event-store-package)

This package presents the necessary tools to leverage Prooph Event Stores inside a Laravel project.

An example of how to use this project can be found at the [ProophessorDo Laravel example](https://github.com/camuthig/proophessor-do-laravel).

Features
--------

[](#features)

- Support PDO event stores out of the box
- Provide commands for working with projections
- Bind repositories to class name and optional interface
- Support custom projection manager and event store resolvers
- Support snapshot stores
- Add migrations for streams, projections and snapshots

Installation
------------

[](#installation)

`composer require camuthig/laravel-event-store-package`

Setup
-----

[](#setup)

### Publish the Config

[](#publish-the-config)

`php artisan vendor:publish`

### Include the Provider

[](#include-the-provider)

The package will automatically be discovered by Laravel when installed, no changes to include the service provider are needed.

Usage
-----

[](#usage)

### Event Store

[](#event-store)

Each event store is bound in a number of ways.

- Each store is bound to the class it implements
- The `default` store will also be bound the the `EventStore` interface

Additionally, each store can be retrieved by name, as found in the configuration file, using the `EventStoreManager` or `EventStore` facade.

```
