apxcde / loan-amortization
PHP composer package for loan amortization
Fund package maintenance!
apxcde
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- pestphp/pest: ^1.20
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2025-02-15 02:50:31 UTC
README
Installation
You can install the package via composer:
composer require apxcde/loan-amortization
Usage
use Apxcde\LoanAmortization\LoanAmortization; $amount = 200000; $termYears = 5; $annualInterestRate = 12; $loan_data = [ 'loan_amount' => (float) $amount, 'term_years' => $termYears, 'interest' => $annualInterestRate, 'term_months' => $termYears * 12, 'starting_date' => Carbon::now(), 'remaining_months' => $termYears * 12, ]; $loan_calculation = new LoanAmortization($loan_data);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.