PHP code example of thetestcoder / gst-calculator

1. Go to this page and download the library: Download thetestcoder/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/ */

    

thetestcoder / gst-calculator example snippets


use Thetestcoder\GstCalculator;

ator(18.0);

try {
    $gstAmount = $gst_calculator->calculate(1000);
    echo "GST Amount: " . $gstAmount;
} catch (\Exception $e) {
    echo $e->getMessage();
}