PHPackages                             ngmy/laravel-async-await-bus - 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. ngmy/laravel-async-await-bus

ActiveLibrary

ngmy/laravel-async-await-bus
============================

A Laravel bus decorator that allows to await asynchronous command responses.

0.2.0(2y ago)074MITPHPPHP ^8.1

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ngmy/laravel-async-await-bus)[ Packagist](https://packagist.org/packages/ngmy/laravel-async-await-bus)[ Docs](https://github.com/ngmy/laravel-async-await-bus)[ Fund](https://flattr.com/@ngmy)[ GitHub Sponsors](https://github.com/ngmy)[ RSS](/packages/ngmy-laravel-async-await-bus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Laravel Async Await Bus
=======================

[](#laravel-async-await-bus)

[![Latest Stable Version](https://camo.githubusercontent.com/34e36d112e9e8091eb9d9b4cc13c3be644fe79f98aaf6f8c07678534904f9d84/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e676d792f6c61726176656c2d6173796e632d61776169742d6275732e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://packagist.org/packages/ngmy/laravel-async-await-bus)[![Test Status](https://camo.githubusercontent.com/6af11b8f6a8eb96a732e1a5014e0a5ca63f74024e7229c9aefbf15479a478afd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e676d792f6c61726176656c2d6173796e632d61776169742d6275732f746573742e796d6c3f7374796c653d666c61742d737175617265266c6162656c3d74657374)](https://github.com/ngmy/laravel-async-await-bus/actions/workflows/test.yml)[![Lint Status](https://camo.githubusercontent.com/247607b73f465adba14f868701aa3d783e63b930077580dc3ae7e5f48422086b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e676d792f6c61726176656c2d6173796e632d61776169742d6275732f6c696e742e796d6c3f7374796c653d666c61742d737175617265266c6162656c3d6c696e74)](https://github.com/ngmy/laravel-async-await-bus/actions/workflows/lint.yml)[![Code Coverage](https://camo.githubusercontent.com/69f9aee0dfb380cccb11f536712231746ecfbc9a583e7d71e3e5d0bba8899898/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c73436f7665726167652f6769746875622f6e676d792f6c61726176656c2d6173796e632d61776169742d6275733f7374796c653d666c61742d737175617265)](https://coveralls.io/github/ngmy/laravel-async-await-bus)[![Total Downloads](https://camo.githubusercontent.com/577b7134440194e64d0c1a37ee1fd35db2a7dcced74edd7511b782130b664bb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e676d792f6c61726176656c2d6173796e632d61776169742d6275732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ngmy/laravel-async-await-bus)

A Laravel bus decorator that allows to await asynchronous command responses.

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

[](#installation)

```
composer require ngmy/laravel-async-await-bus
```

Usage
-----

[](#usage)

Command classes must implement the `ShouldAwaitResponse` interface and use the `Respondable` trait:

```
