PHP Billing Library
Billing library providing:
calculator and aggregator
one-time, metered and recurring charging
Please see additional doccumentation in russian.
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.
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:
This billing is designed to be flexible and abstract, so supports different use cases. We use this package in production, wrapping it additional layers, such as:
So, as you can see, this package is a concrete foundation of big billing system, but it requires a lot of bricks on top of it to become a fully operable billing. Unfortunately, we do not have all those bricks open-sourced and documented because many of them implement customer-specific logic that cannot be disclosed.
This project is released under the terms of the BSD-3-Clause license. Read more here.
Copyright © 2017-2019, HiQDev (http://hiqdev.com/)