Event sourcing in Laravel with the Verbs package
Published on by Eric L. Barnes
Verbs is an Event Sourcing package for Laravel created by Thunk.dev. It aims to take all the good things about event sourcing and remove as much boilerplate and jargon as possible. Verbs allows you to derive the state of your application from the events that have occurred.
Learn about the history of Verbs
Here is an interview with Daniel Coulbourne, one of the creators of Verbs, that gives details on the project and why you might want to use Event Sourcing:
Verbs work great for the following...
- Applications that need to be auditable
- Applications whose schema may change over time
- Applications with complex business logic
What is Event Sourcing?
Instead of knowing just the current state of your app, every change (event) that leads to the current state is stored. This allows for a more granular understanding of how the system arrived at its current state and offers the flexibility to reconstruct or analyze the state at any point in time.
Learn more about Verbs
Visit the official Verbs documentation for complete details on the package, a Quickstart guide, and more.
Eric is the creator of Laravel News and has been covering Laravel since 2012.