https://github.com/invis1ble/messenger
Bus and Message Interfaces and Implementations.
https://github.com/invis1ble/messenger
command command-bus cqrs event event-bus message-bus messenger query
Last synced: about 1 month ago
JSON representation
Bus and Message Interfaces and Implementations.
- Host: GitHub
- URL: https://github.com/invis1ble/messenger
- Owner: Invis1ble
- License: mit
- Created: 2023-09-02T23:44:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-01T23:49:51.000Z (4 months ago)
- Last Synced: 2025-02-02T00:26:11.439Z (4 months ago)
- Topics: command, command-bus, cqrs, event, event-bus, message-bus, messenger, query
- Language: PHP
- Homepage:
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Messenger
==================
[](https://codecov.io/gh/Invis1ble/messenger)
[](https://packagist.org/packages/Invis1ble/messenger)
[](./LICENSE)Bus and Message Interfaces and Implementations.
- Command & Command Bus
- Query & Query Bus
- Event & Event BusInstallation
------------To install this package, you can use Composer:
```sh
composer require invis1ble/messenger
```or just add it as a dependency in your `composer.json` file:
```json
{
"require": {
"invis1ble/messenger": "^5.0"
}
}
```After adding the above line, run the following command to install the package:
```sh
composer install
```Development
-----------### Getting started
1. If not already done, [install Docker Compose](https://docs.docker.com/compose/install/) (v2.10+)
2. Run `docker compose build --no-cache` to build fresh images
3. Run `docker compose up -d --wait` to start the Docker containers
4. Run `docker compose exec php composer install` to install dependencies
5. Run `docker compose down --remove-orphans` to stop the Docker containers.### Check for Coding Standards violations
Run PHP_CodeSniffer checks:
```sh
docker compose exec -it php bin/php_codesniffer
```Run PHP-CS-Fixer checks:
```sh
docker compose exec -it php bin/php-cs-fixer
```Testing
-------To run Unit tests during development
```sh
docker compose exec php vendor/bin/phpunit
```To run with coverage
```sh
XDEBUG_MODE=coverage docker compose up -d --wait
docker compose exec php vendor/bin/phpunit --coverage-clover var/log/coverage-clover.xml
```License
-------[The MIT License](./LICENSE)