archim / ordering
Ordering archetype: event-sourced orders whose confirmation drives a fulfillment process, with a reply to the orderer
v0.1.0
2026-12-03 19:05 UTC
Requires
- php: ^8.5
- archim/common: ^0.1
- archim/messaging: ^0.1
- beberlei/assert: ^3.3.2
- doctrine/dbal: ^4.0
- ecotone/amqp: ^1.328.3
- ecotone/dbal: ^1.328.3
- ecotone/ecotone: ^1.328.3
- ecotone/enqueue: ^1.328.3
- ecotone/pdo-event-sourcing: ^1.328.3
- queue-interop/queue-interop: ^0.8.1
- ramsey/uuid: ^4.9
Requires (Dev)
- archim/ordering-contract: ^0.1
- archim/testing: ^0.1
- enqueue/amqp-ext: ^0.10.20
- phpunit/phpunit: ^13.0
- queue-interop/amqp-interop: ^0.8.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 19:10:53 UTC
README
The Ordering archetype of ArchIM: it turns an intent into a fulfillment request and coordinates it, but does not perform it. An order line points at a product, a quantity, the specification the orderer chose and the price the orderer computed.
What it answers
- What is the state of the order and of its lines?
- Who takes part in the order, and in which role?
- Which process fulfils it, and how did it end: fulfilled, cancelled or failed?
What it provides
- Orders with their whole history: lines added to a draft, removed with a reason once confirmed, confirmed, cancelled.
- Fulfillment by process: a fulfiller in the same application is called on confirmation and cancellation; a fulfiller in another deployment follows Ordering's public events and reports its progress with a command over the Distributed Bus.
- Participants in roles, validated per process.
- A reply to the orderer when the order reaches its final state, also across deployments.
- Read models of orders, and public events of confirmed and cancelled orders and of lines removed from a confirmed one.
Documentation
- Ordering in the target model: model, published language and decisions.
- Using a module: wiring, database, processes and integration.
archim/ordering-contract: the JSON Schemas of Ordering's messages.- Decision: ordering across deployments.
License
Apache License 2.0: see the LICENSE file.