blesta/proration

A proration calculator

2.0.0 2017-01-10 18:05 UTC

This package is auto-updated.

Last update: 2024-11-23 09:38:10 UTC


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