hiqdev/php-billing

PHP Billing Library

dev-master 2018-12-14 16:24 UTC

README

PHP Billing Library

Latest Stable Version Total Downloads Build Status Scrutinizer Code Coverage Scrutinizer Code Quality

Billing library providing:

  • customers with subscriptions

  • orders with actions

  • tariff plans with prices

  • smart discounts with formulas

  • bills with charges

  • calculator and aggregator

  • one-time, metered and recurring charging

Please see additional doccumentation in russian.

Installation

The preferred way to install this library is through composer.

Either run

php composer.phar require "hiqdev/php-billing"

or add

"hiqdev/php-billing": "*"

to the require section of your composer.json.

Idea

In general the billing functions like this:

For a given order a calculator finds plans and then matches applicable prices to actions and calculates charges. Then charges can be aggregated to bills with aggregator.

Billing operates such ideas:

License

This project is released under the terms of the BSD-3-Clause license. Read more here.

Copyright © 2017-2018, HiQDev (http://hiqdev.com/)