PHPackages                             ulrack/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. [HTTP &amp; Networking](/categories/http)
4. /
5. ulrack/transaction

Abandoned → [ulrack/web](/?search=ulrack%2Fweb)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

ulrack/transaction
==================

Transactions from Ulrack.

5.0.1(6y ago)123MITPHPPHP ^7.2

Since Mar 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ulrack/transaction)[ Packagist](https://packagist.org/packages/ulrack/transaction)[ RSS](/packages/ulrack-transaction/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b8b321bdb9a9522757d9592c490e94942e39cfb10e10a4b06773c89272a3ce17/68747470733a2f2f7472617669732d63692e636f6d2f756c7261636b2f7472616e73616374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ulrack/transaction)

Ulrack Transaction
==================

[](#ulrack-transaction)

Ulrack Transaction offers standard objects for requests and responses. These objects can be used to standardize transactions between systems. Both the `Request` and `Response` objects are build to be immutable after construction.

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

[](#installation)

To install the package run the following command:

```
composer require ulrack/transaction

```

Usage
-----

[](#usage)

### [Request](src/Component/Request.php)

[](#request)

A simple data access object for defining incoming web requests. This instance requires one of the [MethodEnum](src/Common/MethodEnum.php)options to be passed.

### [Response](src/Component/Response.php)

[](#response)

A simple data access object for defining outgoing web responses.

### [Command](src/Component/Command.php)

[](#command)

A simple data access object for defining incoming CLI instructions.

### Factories

[](#factories)

#### [CommandFactory](src/Factory/CommandFactory.php)

[](#commandfactory)

A static factory which creates [Commands](src/Component/Command.php) based on provided arguments.

The following example will generate a command object.

```
