PHPackages                             robertbaelde/notificationtransactions - 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. robertbaelde/notificationtransactions

ActiveLibrary

robertbaelde/notificationtransactions
=====================================

Ability to wait with sending notifications until a specific action completes

1.0.1(6y ago)049MITPHPPHP ^7.1CI failing

Since Dec 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Robertbaelde/NotificationTransactions)[ Packagist](https://packagist.org/packages/robertbaelde/notificationtransactions)[ Docs](https://github.com/robertbaelde/notificationtransactions)[ RSS](/packages/robertbaelde-notificationtransactions/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (3)Versions (6)Used By (0)

Transactions for Laravel Notifications
======================================

[](#transactions-for-laravel-notifications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4cc9dcab63dec43fc9aeafec4f500fbcb52aaa2e51b6826f302067dd6cadcd17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f626572746261656c64652f6e6f74696669636174696f6e7472616e73616374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robertbaelde/notificationtransactions)[![Build Status](https://camo.githubusercontent.com/21c26cacec56c7e775683772da76181addedbe9ef8a4796e644fc73822ab9a82/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726f626572746261656c64652f6e6f74696669636174696f6e7472616e73616374696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/robertbaelde/notificationtransactions)[![Quality Score](https://camo.githubusercontent.com/0eb8192c5af1034496e893fe1272f13e69dc55d22ca7361b31b5e748b554a208/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3232373835313536372f736869656c64)](https://github.styleci.io/repos/227851567/shield)[![Total Downloads](https://camo.githubusercontent.com/727f3781a5b8b9abe5130557d598952c4f6d803e97981e3dfc4100c14af8b70a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f626572746261656c64652f6e6f74696669636174696f6e7472616e73616374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robertbaelde/notificationtransactions)

This package holds off the sending of notifications until the transactions is commit. This is usefull if you trigger notifications inside a database transaction for example.

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

[](#installation)

You can install the package via composer:

```
composer require robertbaelde/notificationtransactions
```

Usage
-----

[](#usage)

```
 // Start a transaction
 NotificationTransaction::start();

 // Trigger your notifications as usual
 $user->notify(new ImportantNotification());

 // commit the notifications when you want to send them
 \NotificationTransaction::commit();

  // rollback the notifications when something failed and notifications must not be send.
  \NotificationTransaction::rollback();

 // You can also use DI instead of the Facade.
 $notificationTransaction = resolve(NotificationTransaction::class);
 $notificationTransaction->start();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [RobertBaelde](https://github.com/robertbaelde)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~52 days

Total

2

Last Release

2295d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eff6bb65242a841ba6e68447ec06501ae0d269c060779417869ea2af012917c5?d=identicon)[robertbaelde](/maintainers/robertbaelde)

---

Top Contributors

[![Robertbaelde](https://avatars.githubusercontent.com/u/4356288?v=4)](https://github.com/Robertbaelde "Robertbaelde (12 commits)")

---

Tags

robertbaeldenotificationtransactions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/robertbaelde-notificationtransactions/health.svg)

```
[![Health](https://phpackages.com/badges/robertbaelde-notificationtransactions/health.svg)](https://phpackages.com/packages/robertbaelde-notificationtransactions)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
