PHP code example of lightools / transaction-nesting
1. Go to this page and download the library: Download lightools/transaction-nesting library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lightools / transaction-nesting example snippets
$dibi = new Dibi\Connection($config);
$manager = new Lightools\TransactionNesting\TransactionManager($dibi);
$manager->transactional(function () {
// your logic
});
sh
$ vendor/bin/tester -c tests/php.ini -d extension_dir=ext tests