Skip to content

Commit

Permalink
Merge pull request #354 from prooph/initial_v8
Browse files Browse the repository at this point in the history
Event Store v8
  • Loading branch information
prolic authored Dec 30, 2018
2 parents 1aac955 + fa207de commit 523a774
Show file tree
Hide file tree
Showing 229 changed files with 7,754 additions and 15,401 deletions.
52 changes: 27 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,46 @@ language: php
matrix:
fast_finish: true
include:
- php: 7.1
env:
- DEPENDENCIES=""
- EXECUTE_CS_CHECK=true
- TEST_COVERAGE=true
- php: 7.1
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.2
env:
- DEPENDENCIES=""
- php: 7.2
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.2
env:
- DEPENDENCIES=""
- EXECUTE_CS_CHECK=true
- TEST_COVERAGE=true
- php: 7.2
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.3
env:
- DEPENDENCIES=""
- TEST_COVERAGE=true
- php: 7.3
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"

cache:
directories:
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
- $HOME/.local
- $HOME/.composer/cache
- $HOME/.php-cs-fixer
- $HOME/.local

before_script:
- mkdir -p "$HOME/.php-cs-fixer"
- phpenv config-rm xdebug.ini
- composer self-update
- composer update --prefer-dist $DEPENDENCIES
- mkdir -p "$HOME/.php-cs-fixer"
- if php --ri xdebug >/dev/null; then phpenv config-rm xdebug.ini; fi
- composer self-update
- composer update --prefer-dist $DEPENDENCIES
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer require prooph/php-cs-fixer-config ^0.3; fi

script:
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --exclude-group=ignore --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit --exclude-group=ignore; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run; fi

after_success:
- if [[ $TEST_COVERAGE == 'true' ]]; then php vendor/bin/coveralls -v; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then php vendor/bin/coveralls -v; fi

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/61c75218816eebde4486
- https://webhooks.gitter.im/e/61c75218816eebde4486
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
834 changes: 0 additions & 834 deletions CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright (c) 2014-2018, prooph software GmbH
Copyright (c) 2015-2018, Sascha-Oliver Prolic
Copyright (c) 2018-2018, prooph software GmbH
Copyright (c) 2018-2018, Sascha-Oliver Prolic
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
50 changes: 14 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,25 @@
# Prooph Event Store

PHP 7.1 EventStore Implementation.
Common classes and interface for Prooph Event Store implementations.

[![Build Status](https://travis-ci.org/prooph/event-store.svg?branch=master)](https://travis-ci.org/prooph/event-store)
[![Coverage Status](https://coveralls.io/repos/prooph/event-store/badge.svg?branch=master&service=github)](https://coveralls.io/github/prooph/event-store?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/prooph/event-store/badge.svg?branch=master)](https://coveralls.io/github/prooph/event-store?branch=master)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/prooph/improoph)

## Overview

Prooph Event Store is capable of persisting event messages that are organized in streams. `Prooph\EventStore\EventStore`
itself is a facade for different persistence adapters (see the list below) and adds event-driven hook points for `Prooph\EventStore\Plugin\Plugin`s
which make the Event Store highly customizable.

## Installation

You can install prooph/event-store via composer by adding `"prooph/event-store": "^7.0"` as requirement to your composer.json.

## Available persistent implementations
- [PDO](https://github.com/prooph/pdo-event-store) - stable

## Available snapshot store implementations
- [Mongo DB](https://github.com/prooph/mongodb-snapshot-store) - stable
- [PDO](https://github.com/prooph/pdo-snapshot-store) - stable
- [Memcached](https://github.com/prooph/memcached-snapshot-store) - stable
- [ArangoDB](https://github.com/prooph/arangodb-snapshot-store) - under development
You can install prooph/event-store via composer by adding `"prooph/event-store": "dev-master"` as requirement to your composer.json.

## Quick Start
### Available persistent implementations

For a short overview please see the annotated Quickstart in the `examples` folder.
- [Event Store Client](https://github.com/prooph/event-store-client) for async TCP connections
- [Event Store HTTP Client](https://github.com/prooph/event-store-http-client) for HTTP connections

## Documentation

Documentation is [in the doc tree](docs/), and can be compiled using [bookdown](http://bookdown.io).

```console
$ php ./vendor/bin/bookdown docs/bookdown.json
$ php -S 0.0.0.0:8080 -t docs/html/
```

Then browse to [http://localhost:8080/](http://localhost:8080/)

## Video Introduction
See: [https://github.com/prooph/documentation](https://github.com/prooph/documentation)

[![Prooph Event Store v7](https://img.youtube.com/vi/QhpDIqYQzg0/0.jpg)](https://www.youtube.com/watch?v=QhpDIqYQzg0)
Will be published on the website soon.

## Support

Expand All @@ -57,11 +34,12 @@ To establish a consistent code quality, please provide unit tests for all your c

## Version Guidance

| Version | Status | PHP Version | Support Until |
|---------|------------|-------------|---------------|
| 5.x | EOL | >= 5.5 | EOL |
| 6.x | Maintained | >= 5.5 | 3 Dec 2017 |
| 7.x | Latest | >= 7.1 | active |
| Version | Status | PHP Version | Support Until |
|---------|-------------|-------------|---------------|
| 5.x | EOL | >= 5.5 | EOL |
| 6.x | Maintained | >= 5.5 | 3 Dec 2017 |
| 7.x | Latest | >= 7.1 | active |
| 8.x | Development | >= 7.2 | active |

## License

Expand Down
126 changes: 51 additions & 75 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,78 +1,54 @@
{
"name": "prooph/event-store",
"description": "PHP EventStore Implementation",
"type": "library",
"license": "BSD-3-Clause",
"homepage": "http://getprooph.org/",
"authors": [
{
"name": "Alexander Miertsch",
"email": "contact@prooph.de",
"homepage": "http://www.prooph.de"
},
{
"name": "Sascha-Oliver Prolic",
"email": "saschaprolic@googlemail.com"
}
],
"keywords": [
"EventStore",
"EventSourcing",
"DDD",
"prooph"
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.1",
"marc-mabe/php-enum": "^2.3.1 || ^3.0.0",
"prooph/common": "^4.1.0"
},
"require-dev": {
"phpspec/prophecy": "^1.7",
"phpunit/php-invoker": "^2.0",
"phpunit/phpunit": "^7.1.4",
"prooph/bookdown-template": "^0.2.3",
"prooph/php-cs-fixer-config": "^0.3",
"psr/container": "^1.0",
"sandrokeil/interop-config": "^2.0.1",
"satooshi/php-coveralls": "^1.0"
},
"suggest" : {
"prooph/pdo-event-store": "For usage with MySQL or Postgres as event store",
"prooph/event-sourcing" : "Basic functionality for event sourced aggregates",
"prooph/service-bus" : "Message bus facade to connect the event store with messaging systems",
"psr/container": "^1.0 for usage of provided factories",
"sandrokeil/interop-config": "For usage of provided factories"
},
"conflict": {
"sandrokeil/interop-config": "<2.0.1"
},
"autoload": {
"psr-4": {
"Prooph\\EventStore\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ProophTest\\EventStore\\": "tests/"
}
},
"extra": {
"branch-alias": {
"dev-master": "7.4-dev"
}
},
"scripts": {
"check": [
"@cs",
"@test"
],
"cs": "php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff",
"test": "phpunit"
},
"config": {
"sort-packages": true
"name": "prooph/event-store-",
"type": "library",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Sascha-Oliver Prolic",
"email": "saschaprolic@googlemail.com"
}
],
"description": "Event Store v8",
"keywords": [
"EventStore",
"EventSourcing",
"DDD",
"prooph"
],
"prefer-stable": true,
"require": {
"php": "^7.2",
"ext-json": "*",
"ramsey/uuid": "^3.7.3"
},
"require-dev": {
"amphp/amp": "^2.0.7",
"phpspec/prophecy": "^1.7",
"phpunit/phpunit": "^7.4",
"doctrine/instantiator": "^1.1",
"sebastian/object-enumerator": "^3.0.3",
"satooshi/php-coveralls": "^2.0"
},
"autoload": {
"psr-4": {
"Prooph\\EventStore\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ProophTest\\EventStore\\": "tests/"
}
},
"scripts": {
"check": [
"@cs",
"@test"
],
"cs": "php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff",
"test": "phpunit"
},
"config": {
"sort-packages": true
}
}
18 changes: 0 additions & 18 deletions docs/bookdown.json

This file was deleted.

Loading

0 comments on commit 523a774

Please sign in to comment.