This is a PHP library designed to simplify the implementation of Event Sourcing patterns in your applications. It provides a robust set of tools and abstractions to manage aggregates, events, event storage, and snapshots, enabling you to build scalable, maintainable, and auditable systems.
Event Sourcing is a design pattern where changes to an application's state are captured as a sequence of events. Instead of storing only the current state, the application maintains a history of all events that have occurred. This approach offers several advantages, including:
You can install ES Lib via Composer:
composer install awd-studio/es-lib
Se the example section.
To use the library in your projects, you need to implement such interfaces:
# Storage / DB layer
## Reading
\AwdEs\Event\Storage\Fetcher\EventFetcher::class
\AwdEs\Event\Storage\Fetcher\Handling\CriteriaHandlingCase::class
## Writing
\AwdEs\Event\Storage\Recorder\EventRecorder::class
# Metadata
## Applying
\AwdEs\Event\Applying\EventApplier::class
## Reading metadata
\AwdEs\Event\Handling\EventHandlerMethodResolver::class
\AwdEs\Meta\Event\EventMetadataResolver::class
This library is licensed under the MIT License. See the LICENSE file for details.
How can I help you explore Laravel packages today?