承接 surgiollc/eloquent-message-repository 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

surgiollc/eloquent-message-repository

最新稳定版本:v3.0

Composer 安装命令:

composer require surgiollc/eloquent-message-repository

包简介

Eloquent Message Repository for EventSauce

README 文档

README

This package allows you to use Eloquent as a custom message repository for EventSauce.

Heavily inspired by EventSaucePHP/DoctrineMessageRepository.

Requirements

This package requires PHP 8.1 and Laravel 9 or higher.

Installation

composer require surgio/eloquent-message-repository:^3.0.0

Setup

Publish the migration:

php artisan vendor:publish --provider="Surgio\EloquentMessageRepository\EventSauceServiceProvider" --tag="migrations"

Migrate your database:

php artisan migrate

Usage

The Eloquent Message Repository implements EventSauce\EventSourcing\MessageRepository and can be passed to any AggregateRootRepository like so:

$aggregateRootRepository = new ConstructingAggregateRootRepository(
    SomeProcess::class,
    new EloquentMessageRepository(new ConstructingMessageSerializer())
);

Testing

You can run the tests with:

composer test

统计信息

  • 总下载量: 35.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-11