PHP Package: spatie/laravel-event-sourcing

Spatie's Laravel Event Sourcing library provides efficient event sourcing capabilities for Laravel applications, enhancing event-driven architecture.

Current Version: 7.12.2
Last Updated: 2025-10-08
PHP Requirement: ^8.0
Dependencies: None

Package Description

Laravel Event Sourcing by Spatie is a powerful library for implementing event sourcing patterns in Laravel projects. It offers streamlined event sourcing mechanisms and seamless integration with existing Laravel features, enabling developers to build robust, scalable applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 7.12.2

Download Download v7.12.2

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/spatie/laravel-event-sourcing/7.12.2/loader.php';
use Spatie\EventSourcing\AggregateRoot;
use Spatie\EventSourcing\StoredEvent;

$obj = new AggregateRoot();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.