mr-luke/framekit is a Laravel package for event sourcing package.
It currently has 2 GitHub stars and 4.982 downloads on Packagist (latest version 2.0.0-rc.3).
Install it with composer require mr-luke/framekit.
Discover more Laravel packages by mr-luke
or browse all Laravel packages to compare alternatives.
Last updated
Framekit is Laravel package built to speed up DDD modeling with EventSourcing. It implements
CQRS architecture. This version will be replaced by 2.0.0 where some concepts will be re-written.
To install through composer, simply put the following in your composer.json file and run composer update
{
"require": {
"mr-luke/framekit": "~1.0"
}
}
Or use the following command
composer require "mr-luke/framekit"
To use Framekit we need to set up some env variables. To see all of them just run command:
php artisan vendor:publish
\Framekit\AggregateRootIt's main build up component. Due to DDD building blocks it's our root or Model tree. The heart of an aggregate is our Entity model.
\Framekit\StateThis is our Entity abstract, we call it State.
\Framekit\EventEvery Aggregate uses Events as state flow control blocks.
\Framekit\ProjectionSince we work with CQRS, it's an instruction how to decompose our model to Query side model.
\Framekit\RetrospectionEventSourcing gives us an ability to walk along the stream to make a retrospection of Events.
There are many more elements to explore...