{"repo":"laravel/vat-calculator","free":true,"listed":false,"github":"https://github.com/laravel/vat-calculator","clone":"git clone https://github.com/laravel/vat-calculator.git","description":"Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be.","language":"PHP","stars":1283,"topics":["vat","vat-calculation","taxes","laravel","php","cashier","eu-moss-tax"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"VatCalculator Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be. Integrates with Laravel and Cashier &mdash; or in a standalone PHP application. Originally created by Marcel Pociot. [!WARNING] This package does not provide any promises for correctly calculated taxes. You are still responsible to making sure that any calculated tax is correct for your use case. If you're uncertain if a certain tax is correct or not, it's best that you talk to an accountant. Requirements - PHP 7.3 or higher - (optional) Laravel 6.0 or higher Installation Install the package with composer: Standalone You can also use this package without Laravel. Simply create a new instance of the VatCalculator and use it. All documentation examples use the Laravel Facade code, so make sure not to call the methods as if they were static methods. Upgrading Please refer to the upgrade guide when upgrading the library. Usage Calculate the gross price To calculate the gross price use the calculate method with a net price and a country code as parameters. The third parameter is the postal code of the customer. As a fourth parameter, you can pass in a boolean indicating whether the customer is a company or a private person. If the customer is a company, which you should check by validating the VAT number, the net price gets returned. Receive more information After calculating the gross price you can extract more information from the VatCalculator. Receive all tax rates for a given","default_branch":null,"files":null,"tree":[],"storefront":"/r/laravel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/laravel/vat-calculator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}