/php-billing

PHP Billing Library

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

PHP Billing

PHP Billing Library

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

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/)