Download the PHP package azaharizaman/nexus-event-stream without Composer

On this page you can find all versions of the php package azaharizaman/nexus-event-stream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nexus-event-stream

Nexus EventStream Package

Event Sourcing Engine for Critical Domains (Finance GL, Inventory)

The EventStream package provides an immutable, append-only event store for domains requiring complete audit trails and state replay capability. This is NOT a general-purpose event busβ€”it's specifically designed for event sourcing in compliance-critical domains.

🎯 Purpose

Event Sourcing is RESERVED for critical domains where you need to answer: "What was the exact state of this entity on [date]?"

Use EventStream for:

Do NOT use EventStream for:

πŸ—οΈ Architecture

This package follows the Hybrid Approach described in ARCHITECTURE.md:

The "Feed" View (AuditLogger) vs. "Replay" Capability (EventStream)

Feature AuditLogger EventStream
Purpose User-facing timeline ("what happened") State reconstruction ("replay history")
Storage Outcome-based logs Immutable event log
Query "Show me changes to Customer #123" "What was GL Account 1000 balance on 2024-10-15?"
Complexity Low High (snapshots, projections, upcasters)
Use Case 95% of domains Critical domains only

Key Concepts

  1. Event: Immutable fact that happened (AccountCreditedEvent, StockReservedEvent)
  2. Stream: Ordered sequence of events for an aggregate
  3. Aggregate: Entity whose state is rebuilt from events (e.g., GL Account, Inventory Item)
  4. Projection: Read model built from event stream (e.g., CurrentBalanceProjection)
  5. Snapshot: Cached aggregate state to optimize replay performance
  6. Temporal Query: Query state at specific point in time

πŸ“¦ Framework-Agnostic Design

This package is pure PHP with no Laravel dependencies. All persistence operations are defined via interfaces:

πŸ”§ Installation

πŸ“‹ Requirements Satisfied

This package satisfies 104 requirements across 7 categories:

πŸš€ Usage Example

Publishing Events

Temporal Queries

Building Projections

πŸ”’ Security & Compliance

πŸ“Š Performance Characteristics

Operation Target Notes
Event Append < 50ms (p95) With database transaction
Stream Read (1000 events) < 100ms From database
Snapshot Restoration < 10ms In-memory cache
Replay 10K events < 5s For state reconstruction
Temporal Query < 3s For < 10K events

πŸ“– Documentation

Package Documentation

Additional Resources

🀝 Integration Points

⚠️ When NOT to Use

If you only need to show "a timeline of changes" to users, use Nexus\AuditLogger instead. EventStream adds complexity and should only be used when state replay is legally or operationally required.

πŸ“ License

MIT License - see LICENSE file for details.


All versions of nexus-event-stream with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/log Version ^3.0
symfony/uid Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package azaharizaman/nexus-event-stream contains the following files

Loading the files please wait ...