PHPackages                             sk/transaction - 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. sk/transaction

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sk/transaction
==============

Library to handle transaction during multiple actions

v1.0.0(9y ago)124MITPHP

Since Nov 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/skroczek/transaction)[ Packagist](https://packagist.org/packages/sk/transaction)[ RSS](/packages/sk-transaction/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Transaction
===========

[](#transaction)

[![Build Status](https://camo.githubusercontent.com/03c1fe2d71a9b33410b52ae2a1a2f5e6c41fc24427b4bd91c002c7b37854b796/68747470733a2f2f7472617669732d63692e6f72672f736b726f637a656b2f7472616e73616374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/skroczek/transaction) [![SensioLabsInsight](https://camo.githubusercontent.com/e7761b1ce2e6bbecede2d22d0b7deb6d89b9f21b20af5be8c833a9401e840986/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32363235326439612d663763372d346563652d386138332d3430623430313439323732632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/26252d9a-f7c7-4ece-8a83-40b40149272c) [![Coverage Status](https://camo.githubusercontent.com/1787fc2e04da7e76857bcab97dbc25143c0f73c9ac146dc7fa795795db8a1242/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f736b726f637a656b2f7472616e73616374696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/skroczek/transaction?branch=master)

Introduction
------------

[](#introduction)

This library claims to provide an easy way to implement secure transactions during nearly everything.

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

[](#installation)

This library can be easily installed via composer

```
composer require sk/transaction

```

or just add it to your composer.json file directly.

Usage
-----

[](#usage)

As a basic usage example, the CallbackTransaction is used to demonstrate the behaviour during three api calls:

```
