PHP code example of inlm / dibi-transactions
1. Go to this page and download the library: Download inlm/dibi-transactions 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/ */
inlm / dibi-transactions example snippets
php
$connection = new Dibi\Connection();
$transactions = new Inlm\DibiTransactions\Transactions($connection);
php
$value = $transactions->transactional(function () use ($connection) {
$connection->query('...');
$connection->query('...');
return $value;
});
php
$transactions->onUnresolved[] = array(Inlm\DibiTransactions\Bridges\Tracy::class, 'logUnresolved');