Simplifies GST calculation and operations
Installation
You can install the package via composer:
composer require gaurangsharma/gst-calculator
Usage
use Gaurang\GstCalculator\Calculator;
echo Calculator::fromCost(100, 18)->getGst();
echo Calculator::fromCost(1000, 9)->getTotalWithGst();
New state functions :
echo Calculator::stateData("HR", 7, 1020, 5)->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
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.