Tax for Laravel
Installation
Installation
composer require cboxdk/laravel-tax
TaxServiceProvider is auto-discovered and binds:
Contracts\TaxCalculator→DefaultTaxCalculatorContracts\RegimeRegistry→ the shipped regimes (DefaultRegimeRegistry::withDefaults())Contracts\TaxRateSource→StaticTaxRateSource(representative national rates)
To use live rate data, bind your own TaxRateSource in a service provider — see
Rate sources. Publish the config with:
php artisan vendor:publish --tag=tax-config