archim / product-attribution
Product attribution: the parties behind a product (manufacturer, brand owner, importer), linking ArchIM's Product and Party modules through their public events
dev-master
2026-12-04 18:05 UTC
Requires
- php: ^8.5
- archim/common: ^0.1
- archim/messaging: ^0.1
- beberlei/assert: ^3.3.2
- doctrine/dbal: ^4.0
- 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/party-contract: ^0.1
- archim/product-attribution-contract: ^0.1
- archim/product-contract: ^0.1
- archim/testing: ^0.1
- phpunit/phpunit: ^13.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-04 18:05:40 UTC
README
The parties behind a product in ArchIM: which manufacturer, brand owner, importer or other party stands behind a product, and since when. It links two generic modules, Product and Party, without either knowing the other: it keeps its own record of both from their public events.
What it answers
- Which parties stand behind a product in a role (manufacturer, brand owner, importer), and when?
- Which products does a party stand behind?
- Which parties stand behind the components of a product, down to the last level of its composition?
What it provides
- Links between a product and a party in a role, each with a validity, added and invalidated by command; event sourced.
- Policies on a new link, replaceable: the role is in the vocabulary, the party is known, the product is published over the whole validity, no duplicate link, a limit of parties per role.
- Its own record of Product's published and withdrawn definitions and compositions, and of Party's registrations, from their public events: idempotent and independent of the order of delivery.
- Read models of the links, and public events of an added and an invalidated link.
Documentation
- Product attribution in the target model: model, published language and decisions.
- Using a module: wiring, database, processes and integration.
archim/product-attribution-contract: the JSON Schemas of its messages.- Decision: product attribution as a module of its own.
License
Apache License 2.0: see the LICENSE file.