2017 © Pedro Peláez
 

library loan-payment-schedule

[Loan payment schedule library]

image

kaurikk/loan-payment-schedule

[Loan payment schedule library]

  • Friday, March 17, 2017
  • by kaurikk
  • Repository
  • 0 Watchers
  • 2 Stars
  • 119 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Build Status Scrutinizer Code Quality Code Coverage
Build Status Tested with SensioLabsInsight, (*1)

loan-payment-schedule

Library to generate loan payment schedule based on configuration. Contains 3 main parts: * PaymentScheduleConfig - holds configuration settings for payment schedule * PaymentScheduleFactory - generates payment schedule based on configuration * PaymentSchedule - holds collection of payment dates for payment schedule generated by factory, (*2)

Basic usage

// We have a loan for 5 years with montly payments

// How many payments loan schedule has
$noOfPayment = 5*12;
// First day of the payment schedule (first day when loan principal is out)
$startDate = new \DateTime('2000-01-01');
// What is the pattern used to generate payment dates
$dateIntervalPattern = 'P1M';

$config = new PaymentScheduleConfig($noOfPayments, $startDate, $dateIntervalPattern);
$schedule = PaymentScheduleFactory::generate($config);
var_dump($schedule instanceof PaymentScheduleInterface); // true

// Get array of payment dates
$paymentDates = $schedule->getPaymentDates();

The Versions

17/03 2017

dev-master

9999999-dev

[Loan payment schedule library]

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Kauri Kont-Kontson

28/02 2017

0.0.1

0.0.1.0

[Loan payment schedule library]

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Kauri Kont-Kontson