Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Persistence Laravel Package

event-engine/php-persistence

Event Engine PHP Persistence Package providing persistence layer utilities for PHP-based event-sourced and CQRS applications. Supports storing and retrieving events and state in a consistent way to integrate with Event Engine workflows.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Event Sourcing & CQRS Architecture: Enables adoption of event-driven patterns for auditability, replayability, and scalability in PHP applications (e.g., financial systems, e-commerce, or real-time analytics). Explicit PHP 8.x support (v0.9.2) now includes full compatibility with PHP 8.0–8.3 and resolves PHP 8.4 deprecations, eliminating versioning friction for teams upgrading from PHP 7.x or adopting Laravel 10+. This aligns with Laravel’s LTS roadmap and reduces migration risks for modern stacks.
  • Data Consistency & Integrity: Provides ACID-compliant event storage for critical workflows (e.g., healthcare, legal, or fintech) where immutability is required. The PHP 8.4 deprecation fixes in v0.9.2 ensure long-term stability, making it a safer choice for production systems with multi-year lifespans.
  • Build vs. Buy: Avoids reinventing event persistence layers, saving 6–12 months of dev time while leveraging a community-backed solution. With two new maintainers in v0.9.2, the package demonstrates active maintenance and reduced risk of abandonment.
  • Roadmap Alignment:
    • Temporal queries: Supports querying events by time ranges (e.g., "Show all state changes for an entity in Q1 2024").
    • Event replay/debugging: Critical for troubleshooting failed transactions or auditing user actions.
    • Multi-region compliance: Immutable event storage simplifies GDPR/CCPA compliance by preserving data residency.
    • PHP 8.x modernization: Teams using Laravel 10+ or PHP 8.3+ can now adopt this package without compatibility concerns, thanks to explicit PHP 8.x support and deprecation fixes.
  • Use Cases:
    • Audit Logs: Immutable records for regulatory compliance (e.g., fintech, SaaS).
    • Stateful Services: Microservices requiring event sourcing (e.g., order processing, user profiles).
    • Real-Time Sync: Decoupled systems needing event-driven updates (e.g., IoT dashboards, collaborative tools).
    • Legacy Modernization: Migrating monolithic apps to event-driven architectures with minimal refactoring, now without PHP versioning constraints.

When to Consider This Package

Adopt if:

  • Your PHP/Laravel app requires event sourcing or CQRS for scalability, auditability, or compliance.
  • You need transactional event storage (PostgreSQL/MySQL) with Laravel’s ecosystem.
  • Your team lacks expertise in building custom event persistence layers.
  • You’re building long-lived systems (e.g., >5 years) where schema flexibility and immutability matter.
  • You’re using PHP 8.0–8.3 (or planning to upgrade) and need a stable, maintained package. v0.9.2’s explicit PHP 8.x support and PHP 8.4 deprecation fixes make it a low-risk choice for modern stacks.
  • Your roadmap includes Laravel 10+ or PHP 8.3+, as this package now aligns perfectly with those versions.
  • You need event replay/debugging (e.g., troubleshooting failed transactions) or temporal queries (e.g., "Show me all changes in the last 30 days").

Look elsewhere if:

  • You need NoSQL/event stores (e.g., EventStoreDB, MongoDB): This package is SQL-focused.
  • Your use case is simple CRUD without event replay/audit needs.
  • You’re constrained by high-throughput performance (e.g., event streaming; consider Kafka + custom storage).
  • Your stack is non-PHP (e.g., Node.js, Python) or non-Laravel (e.g., raw Symfony).
  • You require distributed consensus (e.g., blockchain-like eventual consistency).
  • You’re locked into PHP 7.x without upgrade plans: This package drops legacy support and now explicitly targets PHP 8.x.
  • You need multi-language support (e.g., JavaScript/Python clients); this is PHP/Laravel-only.

How to Pitch It (Stakeholders)

For Executives: *"This package is now the safest, most future-proof choice for event-driven architecture in Laravel, thanks to explicit PHP 8.x support and PHP 8.4 deprecation fixes in v0.9.2. By adopting it, we can:

  • Eliminate 6–12 months of dev time building a custom event store.
  • Ensure compliance with immutable audit trails (critical for [regulatory use case, e.g., HIPAA, GDPR]).
  • Future-proof our stack with active maintenance (2 new contributors in the latest release) and full alignment with Laravel 10+/PHP 8.3+. Think of it as ‘Git for your data’: every change is an immutable event, enabling features like time-travel debugging or ‘undo last action’—without the complexity. Ideal for [specific use case, e.g., ‘our global payment system’ or ‘patient record tracking’], now with zero PHP versioning risks."

For Engineering: *"A production-ready, Laravel-integrated event persistence layer that now explicitly supports PHP 8.0–8.3 and resolves PHP 8.4 deprecations, ensuring compatibility with modern Laravel ecosystems. Key benefits:

  • Handles event storage/loading with ACID guarantees (PostgreSQL/MySQL).
  • Supports projections (materialized views) for CQRS read models.
  • Integrates seamlessly with Laravel’s ecosystem (e.g., queues, caching) via events/observers.
  • MIT-licensed, actively maintained (last release: Jan 2025, 2 new contributors), and PHP 8.2+ compatible. Tradeoffs: SQL-only (not a drop-in for EventStoreDB), but avoids vendor lock-in. Perfect for [specific feature, e.g., ‘our order reconciliation system’] where we need to replay events for disputes—now with no PHP versioning concerns and explicit deprecation fixes."*

For Architects: *"Key differentiators post-v0.9.2:

  • Explicit PHP 8.x support: No more workarounds for teams using Laravel 10+ or PHP 8.3+. PHP 8.4 deprecations are resolved, ensuring long-term stability.
  • Schema flexibility: Events stored as JSON blobs with metadata (e.g., event_id, aggregate_id, timestamp).
  • Laravel-native: Uses Eloquent models for aggregates, with built-in event versioning.
  • Extensible: Hooks for custom serializers, storage backends, or event handlers.
  • Community-backed: 2 new maintainers in the latest release signal strong long-term viability. Example: Replace a monolithic users table with this event store to track every profile change—enabling features like ‘undo last action’ or ‘export user history’ without complex triggers, now with explicit PHP 8.x support and no deprecation risks."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor