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
gilak/nolock
get read of locking file in both laravel and the way laravel use league filesyst...
2,234
2
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| | MIT | |
| 2.24.21 | ^8.0 | ^8.0| | MIT | |
| 2.24.20 | ^8.0 | ^8.0| | MIT | |
| 2.24.19 | ^8.0 | ^8.0| | MIT | |
| 2.24.18 | ^8.0 | ^8.0| | MIT | |
| 2.24.17 | ^8.0 | ^8.0| | MIT | |
| 2.24.16 | ^8.0 | ^8.0| | MIT | |
| 2.24.15 | ^8.0 | ^8.0| | MIT | |
| 2.24.14 | ^8.0 | ^8.0| | MIT | |
| 2.24.13 | ^8.0 | ^8.0| | MIT | |
| 2.24.12 | ^8.0 | ^8.0| | MIT | |
| 2.24.11 | ^8.0 | ^8.0| | MIT | |
| 2.24.10 | ^8.0 | ^8.0| | MIT | |
| 2.24.9 | ^8.0 | ^8.0| | MIT | |
| 2.24.8 | ^8.0 | ^8.0| | MIT | |
| 2.24.7 | ^8.0 | ^8.0| | MIT | |
| 2.24.6 | ^8.0 | ^8.0| | MIT | |
| 2.24.5 | ^8.0 | ^8.0| | MIT | |
| 2.24.4 | ^8.0 | ^8.0| | MIT | |
| 2.24.3 | ^8.0 | ^8.0| | MIT | |
| 2.24.2 | ^8.0 | ^8.0| | MIT | |
| 2.24.1 | ^8.0 | ^8.0| | MIT | |
| 2.24.0 | ^8.0 | ^8.0| | MIT | |
| 2.23.20 | ^8.0 | ^8.0| | MIT | |
| 2.23.19 | ^8.0 | ^8.0| | MIT | |
| 2.23.18 | ^8.0 | ^8.0| | MIT | |
| 2.23.17 | ^8.0 | ^8.0| | MIT | |
| 2.23.16 | ^8.0 | ^8.0| | MIT | |
| 2.23.15 | ^8.0 | ^8.0| | MIT | |
| 2.23.14 | ^8.0 | ^8.0| | MIT |
Showing the latest 30 of 154. See every release on Packagist