blesta / proration
A proration calculator
2.0.0
2017-01-10 18:05 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~4.6
- squizlabs/php_codesniffer: ~2.3
README
Proration Calculator
Installation
Install via composer:
composer require blesta/proration:~2.0
Basic Usage
use Blesta\Proration\Proration; $start_date = date('c'); $prorate_day = 1; $term = 1; $period = 'month'; $proration = new Proration($start_date, $prorate_day, $term, $period); echo $proration->prorateDate(); echo $proration->canProrate(); echo $proration->prorateDays(); echo $proration->proratePrice(5.00);