mindpowered/carloancalculator

Car Loan Auto Loan Payment Calculator - Calculate financing on a new car including trade-in and taxes

0.0.7 2021-02-03 07:27 UTC

This package is auto-updated.

Last update: 2024-03-29 04:06:07 UTC


README

Car Loan Auto Loan Payment Calculator - Calculate financing on a new car including trade-in and taxes

Build Status

Contents

Source Code and Documentation

About

This package aims to calculate the following:

  • Given the price of a new car, what is the payment?
  • Given a certain payment, what is the max price of the new car?

The calculation takes into account:

  • The interest rate of the car loan
  • The term (length) of the car loan
  • Applicable Taxes
  • Trade-in value and amount owing
  • Down payment

Requirements

  • php >= 7
  • php mbstring extension
  • php xml extension

Third-party dependencies may have additional requirements.

Installation

You can get carloancalculator using Composer. Composer manages dependencies for packages from Packagist and you can get it here: https://getcomposer.org/ .

Create a composer.json file in the top-most directory of your project and add mindpowered/carloancalculator to the requirements:

{
        "require": {
                "mindpowered/carloancalculator" : "*"
        }
}

Now you can run the command to update composer: composer update. In order for composer to install the package dependencies you will need an archive manager such as zip installed. Composer requires use of the commands zip and unzip.

Usage

require __DIR__ . '/vendor/autoload.php';

use \mindpowered\carloancalculator\CarLoanCalculator;

$clc = new CarLoanCalculator();
$clc->CalcPayments(33429, 4500, 0, 10000, 2000, 0.7, 3.99);

Support

We are here to support using this package. If it doesn't do what you're looking for, isn't working, or you just need help, please Contact us.

There is also a public Issue Tracker available for this package.

Licensing

This package is released under the MIT License.