-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event store #421
Draft
jlabedo
wants to merge
11
commits into
ecotoneframework:main
Choose a base branch
from
jlabedo:event-store-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Event store #421
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
472f175
event store
jlabedo 89f963e
the long path to standard repository
jlabedo 8895f31
pure aggregates
jlabedo b28317e
ecotone projector
jlabedo 6a3e11b
on the way to async
jlabedo 23ed4e0
async projections
jlabedo 17c97da
working tests
jlabedo a68e385
fix tests
jlabedo 397d73d
add todo
jlabedo 717ac91
add for share
jlabedo fb22524
save
jlabedo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,10 @@ | |
{ | ||
"type": "path", | ||
"url": "packages/Kafka" | ||
}, | ||
{ | ||
"type": "path", | ||
"url": "packages/EventSourcingV2" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tests/ export-ignore | ||
.coveralls.yml export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
behat.yaml export-ignore | ||
phpstan.neon export-ignore | ||
phpunit.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [dgafka] | ||
patreon: # Replace with a single Open Collective username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
10 changes: 10 additions & 0 deletions
10
packages/EventSourcingV2/.github/ISSUE_TEMPLATE/bug_report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: This is Read-Only repository | ||
about: Report at ecotoneframework/ecotone-dev | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
Report issue at [ecotone-dev](ecotoneframework/ecotone-dev) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.idea/ | ||
vendor/ | ||
bin/ | ||
tests/coverage | ||
!tests/coverage/.gitkeep | ||
file | ||
.phpunit.result.cache | ||
composer.lock | ||
phpunit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Copyright (c) 2024 Dariusz Gafka <[email protected]> | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
|
||
**Scope of the License** | ||
|
||
Apache-2.0 Licence applies to non Enterprise Functionalities of the Ecotone Framework. | ||
Functionalities of the Ecotone Framework referred to as Enterprise functionalities, are not covered under the Apache-2.0 license. These functionalities are provided under a separate Enterprise License. | ||
For details on the Enterprise License, please write to [email protected]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This is Read Only Repository | ||
To contribute make use of [Ecotone-Dev repository](https://github.com/ecotoneframework/ecotone-dev). | ||
|
||
<p align="left"><a href="https://ecotone.tech" target="_blank"> | ||
<img src="https://github.com/ecotoneframework/ecotone-dev/blob/main/ecotone_small.png?raw=true"> | ||
</a></p> | ||
|
||
![Github Actions](https://github.com/ecotoneFramework/ecotone-dev/actions/workflows/split-testing.yml/badge.svg) | ||
[![Latest Stable Version](https://poser.pugx.org/ecotone/ecotone/v/stable)](https://packagist.org/packages/ecotone/ecotone) | ||
[![License](https://poser.pugx.org/ecotone/ecotone/license)](https://packagist.org/packages/ecotone/ecotone) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/ecotone/ecotone)](https://packagist.org/packages/ecotone/ecotone) | ||
[![PHP Version Require](https://img.shields.io/packagist/dependency-v/ecotone/ecotone/php.svg)](https://packagist.org/packages/ecotone/ecotone) | ||
|
||
`Ecotone Framework` is a `Service Bus` which enables `Message-Driven` architecture in `PHP`. | ||
Based on resilient Message-Driven principles provides support for building applications that follows `Domain-Driven Design` (DDD), `Command Query Responsibility Segregation` (CQRS) and `Event Sourcing` (ES). | ||
|
||
> The term "Ecotone", in ecology means transition area between ecosystems, such as forest and grassland. | ||
The Ecotone Framework functions as transition area between your components, modules and services. It glues things together, yet respects the boundaries of each area. | ||
|
||
> Ecotone can be used with [Symfony](https://docs.ecotone.tech/modules/symfony-ddd-cqrs-event-sourcing) and [Laravel](https://docs.ecotone.tech/modules/laravel-ddd-cqrs-event-sourcing) frameworks. | ||
|
||
## Getting started | ||
|
||
The quickstart [page](https://docs.ecotone.tech/quick-start) of the | ||
[reference guide](https://docs.ecotone.tech) provides a starting point for using Ecotone. | ||
Read more on the [Ecotone's Blog](https://blog.ecotone.tech). | ||
|
||
## Feature requests and issue reporting | ||
|
||
Use [issue tracking system](https://github.com/ecotoneframework/ecotone-dev/issues) for new feature request and bugs. | ||
Please verify that it's not already reported by someone else. | ||
|
||
## Contact | ||
|
||
If you want to talk or ask question about Ecotone | ||
|
||
- [**Twitter**](https://twitter.com/EcotonePHP) | ||
- **[email protected]** | ||
- [**Community Channel**](https://discord.gg/CctGMcrYnV) | ||
|
||
## Support Ecotone | ||
|
||
If you want to help building and improving Ecotone consider becoming a sponsor: | ||
|
||
- [Sponsor Ecotone](https://github.com/sponsors/dgafka) | ||
- [Contribute to Ecotone](https://github.com/ecotoneframework/ecotone-dev). | ||
|
||
## Tags | ||
|
||
PHP DDD CQRS Event Sourcing Symfony Laravel Service Bus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"name": "ecotone/event-sourcing", | ||
"license": [ | ||
"Apache-2.0", | ||
"proprietary" | ||
], | ||
"homepage": "https://docs.ecotone.tech/", | ||
"forum": "https://discord.gg/CctGMcrYnV", | ||
"type": "library", | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"authors": [ | ||
{ | ||
"name": "Jean de La Bédoyère" | ||
} | ||
], | ||
"keywords": ["ecotone", "EventSourcingV2"], | ||
"description": "Extends Ecotone with EventSourcingV2 integration", | ||
"autoload": { | ||
"psr-4": { | ||
"Ecotone\\EventSourcingV2\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Test\\Ecotone\\EventSourcingV2\\": [ | ||
"tests" | ||
] | ||
} | ||
}, | ||
"require": { | ||
"ecotone/ecotone": "^1.62" | ||
}, | ||
"require-dev": { | ||
"ext-pdo": "*", | ||
"ext-pdo_pgsql": "*", | ||
"doctrine/dbal": "^3.0", | ||
"phpunit/phpunit": "^9.5", | ||
"phpstan/phpstan": "^1.8", | ||
"psr/container": "^2.0", | ||
"symfony/event-dispatcher": "^7.2", | ||
"symfony/process": "^7.2", | ||
"symfony/console": "^7.2", | ||
"wikimedia/composer-merge-plugin": "^2.1" | ||
}, | ||
"scripts": { | ||
"tests:phpstan": "vendor/bin/phpstan", | ||
"tests:phpunit": "vendor/bin/phpunit", | ||
"tests:ci": [ | ||
"@tests:phpstan", | ||
"@tests:phpunit" | ||
] | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-main": "1.62-dev" | ||
}, | ||
"ecotone": { | ||
"repository": "EventSourcingV2" | ||
}, | ||
"merge-plugin": { | ||
"include": [ | ||
"../local_packages.json" | ||
] | ||
}, | ||
"license-info": { | ||
"Apache-2.0": { | ||
"name": "Apache License 2.0", | ||
"url": "https://github.com/ecotoneframework/ecotone-dev/blob/main/LICENSE", | ||
"description": "Allows to use non Enterprise features of Ecotone. For more information please write to [email protected]" | ||
}, | ||
"proprietary": { | ||
"name": "Enterprise License", | ||
"description": "Allows to use Enterprise features of Ecotone. For more information please write to [email protected]" | ||
} | ||
} | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"wikimedia/composer-merge-plugin": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
parameters: | ||
level: 1 | ||
paths: | ||
- src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" | ||
backupGlobals="true" | ||
> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">./src</directory> | ||
</include> | ||
<report> | ||
<text outputFile="php://stdout" showOnlySummary="true" /> | ||
</report> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Unit Tests"> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
16 changes: 16 additions & 0 deletions
16
packages/EventSourcingV2/src/Ecotone/Attribute/EventSourced.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/* | ||
* licence Apache-2.0 | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Ecotone\EventSourcingV2\Ecotone\Attribute; | ||
|
||
#[\Attribute] | ||
class EventSourced | ||
{ | ||
public function __construct( | ||
public readonly string $name | ||
) { | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/EventSourcingV2/src/Ecotone/Attribute/EventSourcingHandler.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
/* | ||
* licence Apache-2.0 | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Ecotone\EventSourcingV2\Ecotone\Attribute; | ||
|
||
#[\Attribute] | ||
class EventSourcingHandler | ||
{ | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why from 7.2?