PHP Libraries › spatie › laravel-event-sourcing Spatie's Laravel Event Sourcing library provides efficient event sourcing capabilities for Laravel applications, enhancing event-driven architecture.
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.
Classes: Spatie\EventSourcing\Snapshots\Snapshot Spatie\EventSourcing\Snapshots\SnapshotRepository Spatie\EventSourcing\Snapshots\EloquentSnapshotRepository Spatie\EventSourcing\Snapshots\EloquentSnapshot Spatie\EventSourcing\Support\CarbonNormalizer Spatie\EventSourcing\Support\DiscoverEventHandlers Spatie\EventSourcing\Support\Composer Spatie\EventSourcing\Support\ModelIdentifierNormalizer Spatie\EventSourcing\Support\ObjectNormalizer Spatie\EventSourcing\EventHandlers\Projectors\EventQuery Spatie\EventSourcing\EventHandlers\Projectors\ProjectsEvents Spatie\EventSourcing\EventHandlers\Projectors\Projector Spatie\EventSourcing\EventHandlers\HandlesEvents Spatie\EventSourcing\EventHandlers\EventHandlerCollection Spatie\EventSourcing\EventHandlers\AppliesEvents Spatie\EventSourcing\EventHandlers\EventHandler Spatie\EventSourcing\EventHandlers\Reactors\Reactor Spatie\EventSourcing\StoredEvents\StoredEvent Spatie\EventSourcing\StoredEvents\Repositories\StoredEventRepository Spatie\EventSourcing\StoredEvents\Repositories\EloquentStoredEventRepository Spatie\EventSourcing\StoredEvents\EventSubscriber Spatie\EventSourcing\StoredEvents\Exceptions\EventClassMapMissing Spatie\EventSourcing\StoredEvents\Exceptions\InvalidStoredEvent Spatie\EventSourcing\StoredEvents\Models\EloquentStoredEvent Spatie\EventSourcing\StoredEvents\Models\EloquentStoredEventCollection Spatie\EventSourcing\StoredEvents\Models\EloquentStoredEventQueryBuilder Spatie\EventSourcing\StoredEvents\ShouldBeStored Spatie\EventSourcing\StoredEvents\HandleStoredEventJob Spatie\EventSourcing\StoredEvents\HandleDomainEventJob Spatie\EventSourcing\Enums\MetaData Spatie\EventSourcing\Console\MakeAggregateCommand Spatie\EventSourcing\Console\MakeReactorCommand Spatie\EventSourcing\Console\CacheEventHandlersCommand Spatie\EventSourcing\Console\ClearCachedEventHandlersCommand Spatie\EventSourcing\Console\MakeProjectorCommand Spatie\EventSourcing\Console\MakeStorableEventCommand Spatie\EventSourcing\Console\ReplayCommand Spatie\EventSourcing\Console\ListCommand Spatie\EventSourcing\Exceptions\InvalidEventHandler Spatie\EventSourcing\EventSourcingServiceProvider Spatie\EventSourcing\AggregateRoots\AggregateRoot Spatie\EventSourcing\AggregateRoots\AggregatePartial Spatie\EventSourcing\AggregateRoots\Exceptions\InvalidEloquentSnapshotModel Spatie\EventSourcing\AggregateRoots\Exceptions\MissingAggregateUuid Spatie\EventSourcing\AggregateRoots\Exceptions\InvalidEloquentStoredEventModel Spatie\EventSourcing\AggregateRoots\Exceptions\CouldNotPersistAggregate Spatie\EventSourcing\AggregateRoots\FakeAggregateRoot Spatie\EventSourcing\AggregateRoots\FakeAggregateRootForPartial Spatie\EventSourcing\EventSerializers\EventSerializer Spatie\EventSourcing\EventSerializers\JsonEventSerializer Spatie\EventSourcing\Events\EventHandlerFailedHandlingEvent Spatie\EventSourcing\Events\StartingEventReplay Spatie\EventSourcing\Events\FinishedEventReplay Spatie\EventSourcing\Facades\Projectionist Spatie\EventSourcing\Attributes\EventSerializer Spatie\EventSourcing\Attributes\EventVersion Spatie\EventSourcing\Commands\AggregateRootCommandHandler Spatie\EventSourcing\Commands\CommandBus Spatie\EventSourcing\Commands\HandledBy Spatie\EventSourcing\Commands\Exceptions\CommandHandlerNotFound Spatie\EventSourcing\Commands\Exceptions\CommandFailed Spatie\EventSourcing\Commands\Exceptions\UnhandledCommand Spatie\EventSourcing\Commands\CommandHandler Spatie\EventSourcing\Commands\AggregateUuid Spatie\EventSourcing\Commands\RunCommandJob Spatie\EventSourcing\Commands\Middleware Spatie\EventSourcing\Commands\Middleware\RetryMiddleware Spatie\EventSourcing\Projections\Projection Spatie\EventSourcing\Projections\Exceptions\ReadonlyProjection Spatie\EventSourcing\Projections\ProjectionObserver Spatie\EventSourcing\Projectionist Close 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);
?>
Report a broken download or code 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.