Download the PHP package solidframe/saga without Composer
On this page you can find all versions of the php package solidframe/saga. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download solidframe/saga
More information about solidframe/saga
Files in solidframe/saga
Package saga
Short Description Saga / Process Manager building blocks: saga lifecycle, compensation, correlation, store for SolidFrame
License MIT
Informations about the package saga
SolidFrame Saga
Saga / Process Manager building blocks: saga lifecycle, compensation, correlation, and persistence.
Orchestrate multi-step business processes with automatic compensation on failure.
Installation
Quick Start
Define a Saga
Saga Lifecycle
Associations (Correlation)
Sagas are correlated to external entities via key-value associations:
Find sagas by association:
Compensation
Compensations are registered during saga execution and run in reverse order on failure:
You can also trigger compensation manually:
Persistence
Saga Store
In-Memory Store
For testing and prototyping:
Saga Status
API Reference
| Class / Interface | Purpose |
|---|---|
SagaInterface |
Contract for saga objects |
AbstractSaga |
Base saga with lifecycle and compensation |
SagaStoreInterface |
Persistence contract |
InMemorySagaStore |
In-memory store for testing |
Association |
Key-value correlation object |
SagaStatus |
Enum: InProgress, Completed, Failed |
SagaNotFoundException |
Saga not found in store |
Related Packages
- solidframe/core — Base exception interface
- solidframe/modular — Sagas often orchestrate cross-module processes
- solidframe/cqrs — Saga handlers dispatch commands
- solidframe/laravel — Database SagaStore,
make:saga,solidframe:saga:status - solidframe/symfony — DBAL SagaStore, same generators
Contributing
This repository is a read-only split of the solidframe/solidframe monorepo, auto-synced on every push to main. Issues, pull requests, and discussions belong in the monorepo.