PHP code example of artyom-e / credit-calculator

1. Go to this page and download the library: Download artyom-e/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/ */

    

artyom-e / credit-calculator example snippets


use ArtyomE\CreditCalculator\ResolverFactory;
use ArtyomE\CreditCalculator\Enums\CalculationType;

$resolver = ResolverFactory::createResolver(CalculationType::annuity);

$paymentSchedule = $resolver->resolve(6, 5000, 45);