PHP code example of theposeidonas / laravel-kdv-calculator

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

    

theposeidonas / laravel-kdv-calculator example snippets


'KDV' => Theposeidonas\LaravelKdvCalculator\Facades\KDV::class,
   
use Theposeidonas\LaravelKdvCalculator\Facades\KDV;
  
$result = KDV::calculate(100); // Toplam tutardan hesaplama
echo $result['total']; // (float) 100.00
echo $result['net']; // (float) 83.33
echo $result['kdv']; // (float) 16.67
  
$result = KDV::calculateNet(83.33); // Net tutardan hesaplama
echo $result['total']; // (float) 100.00
echo $result['net']; // (float) 83.33
echo $result['kdv']; // (float) 16.67
shell
php artisan vendor:publish --tag=kdv-calculator-config --force