rayrutjes / php-geteventstore-client
V0.0.1
2016-02-14 01:40 UTC
Requires
- php: ~7.0
- ramsey/uuid: ^3.1
Requires (Dev)
- guzzlehttp/guzzle: ~6.0
- phpunit/phpunit: ^5.2
Suggests
- guzzlehttp/guzzle: Required when using the http client.
This package is not auto-updated.
Last update: 2024-09-14 18:26:14 UTC
README
PHP GetEventStore 客户端
这是一个用于与GetEventStore通信的PHP客户端库。
目前它已针对V3.4.0 API进行了测试,尚未在其他版本上测试。
需求
您的PHP版本应至少为7.0.0,我认为这应该不成问题。
事件溯源通常需要从您项目的开始就考虑。
既然您正在启动一个新项目,为什么不从PHP 7开始呢?
安装
$ composer require rayrutjes/php-geteventstore-client
目前只有一个http客户端。您需要将Guzzle添加到您的项目中。
$ composer require guzzlehttp/guzzle
测试
$ composer update $ vendor/bin/phpunit
测试将寻找环境变量GES_BASE_URI
。如果没有找到,它将使用默认的http://127.0.0.1:2113
URI与事件存储进行通信。
一些有见地的选择
- 我们从不使用xml作为http消息的内容类型,因为它会使体增大。
- 目前,我们使用在Feeds中嵌入体以减少http请求的数量。
贡献
请随时以任何方式贡献。