{"id":34000374,"url":"https://github.com/lightools/transaction-nesting","last_synced_at":"2026-04-09T00:02:06.984Z","repository":{"id":57014922,"uuid":"54475997","full_name":"lightools/transaction-nesting","owner":"lightools","description":"Nesting database transactions with dibi connection.","archived":false,"fork":false,"pushed_at":"2016-04-12T14:33:30.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T21:38:56.292Z","etag":null,"topics":["database-transactions","dibi"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightools.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-22T13:09:46.000Z","updated_at":"2016-04-01T20:57:09.000Z","dependencies_parsed_at":"2022-08-22T09:31:27.828Z","dependency_job_id":null,"html_url":"https://github.com/lightools/transaction-nesting","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lightools/transaction-nesting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ftransaction-nesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ftransaction-nesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ftransaction-nesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ftransaction-nesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightools","download_url":"https://codeload.github.com/lightools/transaction-nesting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightools%2Ftransaction-nesting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31579058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database-transactions","dibi"],"created_at":"2025-12-13T09:24:23.565Z","updated_at":"2026-04-09T00:02:06.978Z","avatar_url":"https://github.com/lightools.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nThis library allows you to nest database transactions over dibi connection.\n\n## Installation\n\n```sh\n$ composer require lightools/transaction-nesting\n```\n\n## Simple usage\n\nTransactionManager will begin/commit/rollback database transaction only if there is no other transaction running.\nSo if you try to start new transaction when some transaction is active, it will not fail with error ```There is already an active transaction```.\nThis means you can nest transactions safely and TransactionManager will make sure that only the outer transaction will be performed.\n\n```php\n$dibi = new Dibi\\Connection($config);\n$manager = new Lightools\\TransactionNesting\\TransactionManager($dibi);\n\n$manager-\u003etransactional(function () {\n    // your logic\n});\n```\n\nOf course, this will break if you perform some query causing implicit commit (for example ALTER TABLE on MySQL).\n\n## How to run tests\n\n```sh\n$ vendor/bin/tester -c tests/php.ini -d extension_dir=ext tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightools%2Ftransaction-nesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightools%2Ftransaction-nesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightools%2Ftransaction-nesting/lists"}