承接 prooph/snapshot-mongodb-adapter 相关项目开发

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

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

prooph/snapshot-mongodb-adapter

最新稳定版本:v2.0.0

Composer 安装命令:

composer require prooph/snapshot-mongodb-adapter

包简介

Snapshot MongoDB Adapter for ProophEventStore

README 文档

README

MongoDB Adapter for the Snapshot Store

Build Status Coverage Status Gitter

#CAUTION: Support for the adapter will end at 31 December 2017. Use https://github.com/prooph/mongodb-snapshot-store instead!

Set Up

How to use the adapter is explained in the prooph/event-store docs.

Interop Factory

Some general notes about how to use interop factories shipped with prooph components can be found in the event store docs. Use the mongodb snapshot adapter factory to set up the adapter. If your IoC container supports callable factories you can register the factory under a service id of your choice and configure this service id as $config['prooph']['snapshot_store']['adpater']['type'] = <adapter_service_id>.

Requirements

  • MongoDB >= 4.0
  • MongoDB PHP Driver >= 1.5.2

Indexing

For faster access to the snapshots, it's recommended to index the metadata.

For example:

    db.[your snapshot collection].files.createIndex({"metadata.aggregate_type": 1, "metadata.aggregate_id": 1, "metadata.last_version": -1});

or use \Prooph\EventStore\Snapshot\Adapter\MongoDb\MongoDbSnapshotAdapter::createIndexes

Support

Contribute

Please feel free to fork and extend existing or add new features and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.

Dependencies

Please refer to the project composer.json for the list of dependencies.

License

Released under the New BSD License.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-10-11