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)056PHPPHP ^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 today

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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

958d 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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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