tiagobrito / dynamodb-message-repository
DynamoDb Message Repository for EventSauce
dev-master
2020-01-13 10:20 UTC
Requires
- ext-json: *
- aws/aws-sdk-php: ^3.0
- eventsauce/eventsauce: ^0.7.0 || ^0.8.0
- ramsey/uuid: ^3.6
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-11-13 21:44:36 UTC
README
This library is an implementation of a DynamoDB Repository for PHP EventSauce.
This implementation as all the features similar to Doctrine Message Repository. (official supported by EventSauce) but for AWS DynamoDB.
Usage:
<?php namespace App\Repository; use Brito\DynamoDbMessageRepository; class MyCustomRepository extends DynamoDbMessageRepository { }
Register your Repository (Symfony)
App\Repository\MyCustomRepository: arguments: - '@aws.dynamodb' - '@EventSauce\EventSourcing\Serialization\ConstructingMessageSerializer' - 'event-source-table-name'
Tests
$ cd tests && docker-compose up $ phpunit tests/