PHPackages                             theposeidonas/laravel-kdv-calculator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. theposeidonas/laravel-kdv-calculator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

theposeidonas/laravel-kdv-calculator
====================================

KDV hesaplamak için oluşturulmuş Laravel Paketi

v1.0.1(2y ago)15MITPHP

Since Mar 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/theposeidonas/laravel-kdv-calculator)[ Packagist](https://packagist.org/packages/theposeidonas/laravel-kdv-calculator)[ RSS](/packages/theposeidonas-laravel-kdv-calculator/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

[![Contributors](https://camo.githubusercontent.com/d043fc32d9d967ec3ce8f3b5eb96eb263eb1bf7369dc2af4515ee300ee44fffb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f746865706f736569646f6e61732f6c61726176656c2d6b64762d63616c63756c61746f722e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/theposeidonas/laravel-kdv-calculator/graphs/contributors)[![Forks](https://camo.githubusercontent.com/a5a6ae845ee7997f4e2a5479d72735ff18f4f0a589b76e7d1609d6b111ebd96e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f746865706f736569646f6e61732f6c61726176656c2d6b64762d63616c63756c61746f722e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/theposeidonas/laravel-kdv-calculator/network/members)[![Stargazers](https://camo.githubusercontent.com/baa9a188d45d47cd63ff24deb30c18444c3e43e820117a234aca945601358c27/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746865706f736569646f6e61732f6c61726176656c2d6b64762d63616c63756c61746f722e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/theposeidonas/laravel-kdv-calculator/stargazers)[![Issues](https://camo.githubusercontent.com/35eabd44d1eda75b86516b9d9da5300b88b0a6de0168fe5ea21db878bc5bcfb6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f746865706f736569646f6e61732f6c61726176656c2d6b64762d63616c63756c61746f722e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/theposeidonas/laravel-kdv-calculator/issues)[![MIT License](https://camo.githubusercontent.com/e7d00208b5ca340d9cf60edd5286064d6c70911b2dae8c22c495531f6b946c1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746865706f736569646f6e61732f6c61726176656c2d6b64762d63616c63756c61746f722e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/theposeidonas/laravel-kdv-calculator/blob/master/LICENSE)[![LinkedIn](https://camo.githubusercontent.com/d52963778220cbec61d6ed72270f9735024ffceeb551e5c3933d4e03b4694cf1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e6b6564496e2d626c61636b2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e6b6564696e26636f6c6f72423d353535)](https://www.linkedin.com/in/theposeidonas/)

 [ ![İstanbul Web Tasarım](https://camo.githubusercontent.com/b296a4bcddaa46f01bf242a8844ca03888e3d0b341dee41de0aa9bd51a4cd28c/68747470733a2f2f697374616e62756c7765627461736172696d2e70726f2f696d616765732f697374616e62756c2d7765622d7461736172696d2d6c6f676f2e77656270) ](https://istanbulwebtasarim.pro)### KDV Calculator Laravel Package

[](#kdv-calculator-laravel-package)

[![Laravel](https://camo.githubusercontent.com/5a580364ff3bd338370177402c5c050ff81a1933927e1e475c920c90850b38a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://laravel.com)[![Packagist Downloads (custom server)](https://camo.githubusercontent.com/50d02d3b1e24bd6c3dbf6c3475e1018dc77d70c4ee3c922f8d2a64d6df225359/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746865706f736569646f6e61732f6c61726176656c2d6b64762d63616c63756c61746f723f7374796c653d666f722d7468652d626164676526636f6c6f723d3030376563362663616368655365636f6e64733d33363030)](https://camo.githubusercontent.com/50d02d3b1e24bd6c3dbf6c3475e1018dc77d70c4ee3c922f8d2a64d6df225359/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746865706f736569646f6e61732f6c61726176656c2d6b64762d63616c63756c61746f723f7374796c653d666f722d7468652d626164676526636f6c6f723d3030376563362663616368655365636f6e64733d33363030)

 Laravel için yazılmış KDV Hesaplama paketi.
 [**Dökümantasyon »**](https://github.com/theposeidonas/laravel-kdv-calculator)

 [Demo](https://github.com/theposeidonas/laravel-kdv-calculator) · [Buglar](https://github.com/theposeidonas/laravel-kdv-calculator/issues) · [İstekler](https://github.com/theposeidonas/laravel-kdv-calculator/issues)

Laravel KDV Hesaplayıcı
=======================

[](#laravel-kdv-hesaplayıcı)

Bu proje, Laravel için oluşturulmuş kolayca KDV hesaplamanızı sağlayacak bir paket. KDV oranını otomatik olarak .env dosyasından çekebilir veya kendiniz atayabilirsiniz.

### Neden ihtiyaç var?

[](#neden-ihtiyaç-var)

Kabul edelim, hiçbir developer tek seferde KDV'yi doğru hesaplayamaz. Bu paketi yazarken bile her yerden ayrı ayrı bakıp acaba doğru hesaplıyor mu diye kontrol etmek zorunda kaldım. Çok kolay olduğunu düşünüyor olabilirsiniz, fakat değil. Örneğin KDV %20 ise, 100₺ olan bir ürünün KDV'si 20₺'dir değil mi? Değil işte, 16,67₺...

Bug ve Hataları lütfen Issues kısmından bildirin. (Olabilir bu arada, bir şey yazdım ama doğru hesaplıyor mu diye hala kontrol ediyorum)

([Başa dön](#readme-top))

Başlarken
---------

[](#başlarken)

KDV oranının güncel olduğunu kontrol edin. Bu paket default olarak %20 oranla hesaplama yapıyor. PHP^8.0 kullanmanızı öneririm.

### Projenize ekleme

[](#projenize-ekleme)

Laravel projenizde terminali açarak şu komutu çalıştırın;

```
composer require theposeidonas/laravel-kdv-calculator
```

Eğer gerekiyorsa config dosyasını paylaşmak için şu komutu çalıştırın;

```
php artisan vendor:publish --tag=kdv-calculator-config --force
```

Eğer Laravel versiyonunuz eskiyse veya Auto-Discovery kapalıysa, her yerde kullanmak için config/app.php dosyasında 'aliases' kısmına şu kodu ekleyin;

```
'KDV' => Theposeidonas\LaravelKdvCalculator\Facades\KDV::class,
```

### Konfigürasyon

[](#konfigürasyon)

Kullanım için projenize eklemeyi yaptıktan sonra, .env dosyası içerisinde KDV oranını düzenleyebilirsiniz.

```
KDV_PERCENTAGE='20'  // %20 oran için 20 girmeniz gerekir
```

([Başa dön](#readme-top))

Kullanım
--------

[](#kullanım)

Kullanacağınız Controller içerisine paketi dahil etmeniz gerekiyor;

```
use Theposeidonas\LaravelKdvCalculator\Facades\KDV;
```

#### Fonksiyonlar

[](#fonksiyonlar)

Kullanabileceğiniz 2 farklı fonksiyon mevcuttur. Toplam tutar verip KDV ve Net tutarı geri alabilirsiniz (KDV dahil tutardan hesaplama yapma) veya NET tutar verip KDV dahil tutarı hesaplayabilirsiniz.

```
$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
```

### Notlar

[](#notlar)

Fonksiyon size her zaman bir float şeklinde veri döndürür. Noktadan sonra maksimum 2 basamak geri döner.

### Changelog

[](#changelog)

#### V1.0.1

[](#v101)

**20 Mart 2024**

- Geri dönüşlerde string olarak dönen veriler float'a çevirildi

#### V1.0.0

[](#v100)

**20 Mart 2024**

- Initial Release

([Başa dön](#readme-top))

Lisanslama
----------

[](#lisanslama)

MIT Lisansı altında dağıtılmaktadır. Daha fazla bilgi için 'LICENSE' dosyasına bakın.

([Başa dön](#readme-top))

İletişim
--------

[](#i̇letişim)

Baran Arda - [@theposeidonas](https://twitter.com/theposeidonas) -

Proje Linki:

([Başa dön](#readme-top))

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

836d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3f0a8f65ab8344d9cf640a4d3009066cfeef8a340ca2acf23f0c60c6640ade7?d=identicon)[theposeidonas](/maintainers/theposeidonas)

---

Top Contributors

[![theposeidonas](https://avatars.githubusercontent.com/u/29899853?v=4)](https://github.com/theposeidonas "theposeidonas (25 commits)")

---

Tags

laravelvattaxKDV

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theposeidonas-laravel-kdv-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/theposeidonas-laravel-kdv-calculator/health.svg)](https://phpackages.com/packages/theposeidonas-laravel-kdv-calculator)
```

###  Alternatives

[commerceguys/tax

Tax library with a flexible data model, predefined tax rates, powerful resolving logic.

285781.2k](/packages/commerceguys-tax)[ddeboer/vatin-bundle

Symfony bundle for the VATIN library

29933.2k](/packages/ddeboer-vatin-bundle)[sylius/taxation

Flexible taxation system for PHP ecommerce applications.

11414.7k12](/packages/sylius-taxation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
