PHPackages                             open-solid/domain - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. open-solid/domain

ActiveLibrary

open-solid/domain
=================

Domain events, event bus and more

v1.0.3(1y ago)2261MITPHPPHP &gt;=8.2

Since Apr 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/open-solid/domain)[ Packagist](https://packagist.org/packages/open-solid/domain)[ RSS](/packages/open-solid-domain/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (1)

Domain Building Blocks
======================

[](#domain-building-blocks)

Installation
------------

[](#installation)

```
composer require open-solid/domain
```

Usage
-----

[](#usage)

### Domain Events

[](#domain-events)

Domain events are significant occurrences within a software system that reflect changes in the state of the domain. These events are used to capture and communicate changes, allowing different parts of the system to react accordingly.

For example, in an e-commerce application, a domain event might be "OrderPlaced" when a customer completes a purchase. This event can then trigger other actions such as updating inventory, sending a confirmation email, or processing payment. Domain events help to decouple systems, making them more modular and easier to maintain, as each component can independently respond to changes without being tightly integrated.

```
