PHP code example of gaurangsharma / gst-calculator
1. Go to this page and download the library: Download gaurangsharma/gst-calculator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gaurangsharma / gst-calculator example snippets
use Gaurang\GstCalculator\Calculator;
echo Calculator::fromCost(100, 18)->getGst();
echo Calculator::fromCost(1000, 9)->getTotalWithGst();
echo Calculator::stateData("HR", "DL")->getGstType();
echo Calculator::stateData("Haryana", "Delhi", 1020, 5)->getAllData();