Skip to content

Latest commit

 

History

History
63 lines (38 loc) · 2.02 KB

README.md

File metadata and controls

63 lines (38 loc) · 2.02 KB

Simplifies GST calculation and operations

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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", "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

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.