anourvalar/laravel-atom

ACID API
12,818 1
Install
composer require anourvalar/laravel-atom
Latest Version:2.24.22
PHP:^8.0
License:MIT
Last Updated:Aug 25, 2026
Links: GitHub  ·  Packagist
Maintainer: AnourValar

Laravel ACID API

Installation

composer require anourvalar/laravel-atom

Usage

Action after transaction commit

Atom::onCommit(function () {
    dispatch(new Job());
});

Action after transaction rollBack

Atom::onRollBack(function () {
    Storage::delete('file.jpg');
});

Pessimistic lock

Atom::lock('user');
Atom::lockUser($user->id); // equals to: Atom::lock('user', $user->id);

Optimistic lock

try {
    Atom::strategy('optimistic_transaction')->lock('week_report');
} catch (\AnourValar\LaravelAtom\Exceptions\OptimisticTransactionException $e) {
    // already in progress..
}

Related Packages

rap2hpoutre/nestor

Do task, rollback if something goes wrong. Just like database transactions.

10,239 4
latrell/lock

支持Redis与Memcached的并发锁。

22,917 32
gilak/nolock

get read of locking file in both laravel and the way laravel use league filesyst...

2,234 2
wooxo/command-lock-redis

'Lock system' for your command task (Laravel 4.2)

1,479 0
ytake/laravel-aspect

Aspect Oriented Programming library for laravel framework, and lumen

143,928 138

Version History

Version Released PHP Laravel License
2.24.22 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
2.24.21 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
2.24.20 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
2.24.19 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
2.24.18 ^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT