PHP code example of rokde / vat-calculator-php

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

    

rokde / vat-calculator-php example snippets

	
$calculator = \Rokde\VatCalculator\Examples\MossReverseCharge2015Europe::getCalculator('DE');

$country = "AT";
$company = false;

/* @var \Rokde\VatCalculator\Price price */
$price = $calculator->calculate($country, $company);
json
"kde/vat-calculator-php": "~0.1"
}