PHP Billing Library
Switch branches/tags
Clone or download
Latest commit 25e257f Dec 14, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs Dec 14, 2018
src Fixed DbMergingAggregator to prevent recursive merging with DB Dec 14, 2018
tests Implemented Leasing finishing events Dec 11, 2018
.gitignore minor Jun 15, 2018
.php_cs csfixed Jan 1, 2018
.scrutinizer.yml minor Jun 15, 2018
.travis.yml minor Nov 23, 2017
LICENSE csfixed May 4, 2018
README.md Removed versioneye badge Nov 15, 2018
behat.yml moved behat tests to `tests/behat` May 18, 2018
composer.json Implemented Leasing finishing events Dec 11, 2018
hidev.yml making phpstan level 3 happy Jun 18, 2018
phpunit.xml.dist minor Jun 5, 2018
psalm.xml Added Psalm Jun 1, 2018

README.md

PHP Billing

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