You can install the package via composer:
composer require gaurangsharma/gst-calculator
use Gaurang\GstCalculator\Calculator;
echo Calculator::fromCost(100, 18)->getGst();
echo Calculator::fromCost(1000, 9)->getTotalWithGst();
New state functions :
echo Calculator::stateData("HR", "DL")->getGstType();
echo Calculator::stateData("Haryana", "Delhi", 1020, 5)->getAllData();
stateData() accepts 4 arguements sourceState, destinationState, cost, rate.
- sourceState and destinationState can be a state code, state alpha code, or a state name
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.