PHPackages                             lozitskiys/pdo-nested-transactions - 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. [Database &amp; ORM](/categories/database)
4. /
5. lozitskiys/pdo-nested-transactions

ActiveLibrary[Database &amp; ORM](/categories/database)

lozitskiys/pdo-nested-transactions
==================================

Support for nested transactions in PDO

2.0.1(2y ago)055PHPPHP ^8.0

Since Jul 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lozitskiys/pdo-nested-transactions)[ Packagist](https://packagist.org/packages/lozitskiys/pdo-nested-transactions)[ RSS](/packages/lozitskiys-pdo-nested-transactions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Info
====

[](#info)

Example of nested transactions use:

```
$db = new PdoWithNT(/*credentials here*/);

try {
    $db->beginTransaction();

    // some logic here

    try {
        $db->beginTransaction();

        // some logic here

        $db->commit();
    } catch (Exception $e) {
        $db->rollBack();
        throw $e;
    }

    $db->commit();
} catch (Exception $e) {
    $db->rollBack();
    throw $e;
}
```

How to install
==============

[](#how-to-install)

```
composer require lozitskiys/pdo-nested-transactions

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

904d ago

Major Versions

0.1.1 → 2.0.02022-09-13

PHP version history (2 changes)2.0.0PHP ^8.1

2.0.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/835cdd1853e1230db401f3de7533f1732d48e0b8dbc730559dfdb64fe47351d6?d=identicon)[lozitskiys](/maintainers/lozitskiys)

---

Top Contributors

[![lozitskiys](https://avatars.githubusercontent.com/u/4169521?v=4)](https://github.com/lozitskiys "lozitskiys (11 commits)")

### Embed Badge

![Health badge](/badges/lozitskiys-pdo-nested-transactions/health.svg)

```
[![Health](https://phpackages.com/badges/lozitskiys-pdo-nested-transactions/health.svg)](https://phpackages.com/packages/lozitskiys-pdo-nested-transactions)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M542](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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