PHPackages                             matrozov/yii2-transaction-checker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. matrozov/yii2-transaction-checker

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

matrozov/yii2-transaction-checker
=================================

Component for checking the closing of transactions at the time of completion of work on a request

01.4kPHP

Since Nov 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/matrozov/yii2-transaction-checker)[ Packagist](https://packagist.org/packages/matrozov/yii2-transaction-checker)[ RSS](/packages/matrozov-yii2-transaction-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Transaction checker
========================

[](#yii2-transaction-checker)

Component for checking the closing of transactions at the time of completion of work on a request.

Allows you to check for different database connections and for a variable number of events. By default, the component checks upon the Application::EVENT\_AFTER\_REQUEST event, as well as upon completion of the script, if it was stopped more rigidly.

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

[](#installation)

The preferred way to install this extension is through composer.

Either run

```
php composer.phar require --prefer-dist matrozov/yii2-transaction-checker "*"
```

or add

```
"matrozov/yii2-transaction-checker": "*"
```

to the require section of your composer.json file.

Usage
-----

[](#usage)

Specify the component and point it to the bootstrap section of the framework.

```
'bootstrap' => ['transactionChecker'],
'components' => [
    'transactionChecker' => [
        'class' => 'matrozov\yii2-transaction-checker\TransactionChecker',
    ],
],
```

You can directly specify the database components in which to check for transaction completion in the component configuration. By default, the component is "db".

```
'connections' => ['db', 'db2'],
```

You can also use events in other components to control the completion of transactions in other cases. For example, if the processing of an event from the queue is completed.

```
'extendedEvents' => [
   'myComponent'  => 'final-work-event',
   'myComponent2' => ['final-work-event-1', 'final-work-event-2'],
],
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4449593?v=4)[Oleg Matrozov](/maintainers/matrozov)[@matrozov](https://github.com/matrozov)

---

Top Contributors

[![matrozov](https://avatars.githubusercontent.com/u/4449593?v=4)](https://github.com/matrozov "matrozov (8 commits)")

### Embed Badge

![Health badge](/badges/matrozov-yii2-transaction-checker/health.svg)

```
[![Health](https://phpackages.com/badges/matrozov-yii2-transaction-checker/health.svg)](https://phpackages.com/packages/matrozov-yii2-transaction-checker)
```

PHPackages © 2026

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