PHPackages                             anourvalar/laravel-atom - 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. [API Development](/categories/api)
4. /
5. anourvalar/laravel-atom

ActiveLibrary[API Development](/categories/api)

anourvalar/laravel-atom
=======================

ACID API

2.24.16(4d ago)112.2k↓48.6%[1 PRs](https://github.com/AnourValar/laravel-atom/pulls)5MITPHPPHP ^8.0CI failing

Since Mar 13Pushed yesterday1 watchersCompare

[ Source](https://github.com/AnourValar/laravel-atom)[ Packagist](https://packagist.org/packages/anourvalar/laravel-atom)[ Docs](https://github.com/AnourValar/laravel-atom)[ RSS](/packages/anourvalar-laravel-atom/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (27)Versions (150)Used By (5)

Laravel ACID API
================

[](#laravel-acid-api)

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

[](#installation)

```
composer require anourvalar/laravel-atom
```

Usage
-----

[](#usage)

### Action after transaction commit

[](#action-after-transaction-commit)

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

### Action after transaction rollBack

[](#action-after-transaction-rollback)

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

### Pessimistic lock

[](#pessimistic-lock)

```
Atom::lock('user');
```

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

### Optimistic lock

[](#optimistic-lock)

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

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance100

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 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 ~15 days

Recently: every ~2 days

Total

148

Last Release

4d ago

Major Versions

1.0.0 → 2.0.02020-03-29

PHP version history (4 changes)1.0.0PHP &gt;=7.0.0

2.1.6PHP &gt;=7.1.0

2.4.0PHP &gt;=8.0

2.8.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![AnourValar](https://avatars.githubusercontent.com/u/54237693?v=4)](https://github.com/AnourValar "AnourValar (164 commits)")

---

Tags

laravelanourvalarrace conditionlocktransactionatomicconditionatomicityracelockForUpdate

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/anourvalar-laravel-atom/health.svg)

```
[![Health](https://phpackages.com/badges/anourvalar-laravel-atom/health.svg)](https://phpackages.com/packages/anourvalar-laravel-atom)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M987](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M62](/packages/knuckleswtf-scribe)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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