PHPackages                             philipbrown/merchant - 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. philipbrown/merchant

Abandoned → [philipbrown/basket](/?search=philipbrown%2Fbasket)ArchivedLibrary

philipbrown/merchant
====================

Ecommerce abstraction for dealing with products, orders and sales

v1.0.0(11y ago)1097MITPHPPHP &gt;=5.3.2

Since Jun 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/philipbrown/merchant)[ Packagist](https://packagist.org/packages/philipbrown/merchant)[ RSS](/packages/philipbrown-merchant/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Merchant (DEPRECATED)
=====================

[](#merchant-deprecated)

**Ecommerce abstraction for dealing with products, orders and sales**

[![Build Status](https://camo.githubusercontent.com/470e811d6281442ce85b2c5b2a4348ac01f1e8194dcc47964765e9143b595363/68747470733a2f2f7472617669732d63692e6f72672f7068696c697062726f776e2f6d65726368616e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/philipbrown/merchant)

Merchant is a simple abstraction for working with products, orders and sales within an ecommerce application. It aims to solve the problem of dealing with multiple product orders and the associated data that you will be required to store and use within the lifecycle of a customer.

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

[](#installation)

Add `philipbrown/merchant` as a requirement to `composer.json`:

```
{
  "require": {
    "philipbrown/merchant": "1.0.*"
  }
}
```

Update your packages with `composer update`.

Usage
-----

[](#usage)

The primary purpose of Merchant is a way to store and organise the data about each individual product with an order or a sale and then to find the aggregate totals using a simple interface.

### Regions

[](#regions)

Due to the fragmented situation of the world's financial rules and regulations, Merchant is broken into individual regions. Each region has specific data set as properties that are applicable in that region.

For example, England is represented as:

```
