PHP code example of artemind / credit-calculator
1. Go to this page and download the library: Download artemind/credit-calculator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
artemind / credit-calculator example snippets
use Artemind\CreditCalculator\ResolverFactory;
use Artemind\CreditCalculator\Enums\CalculationType;
$resolver = ResolverFactory::createResolver(CalculationType::annuity);
$paymentSchedule = $resolver->resolve(6, 5000, 45);