Download the PHP package dannyvankooten/laravel-vat without Composer
On this page you can find all versions of the php package dannyvankooten/laravel-vat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dannyvankooten/laravel-vat
More information about dannyvankooten/laravel-vat
Files in dannyvankooten/laravel-vat
Informations about the package laravel-vat
HEADS UP I suggest using ibericode/vat directly until #22 is tackled. Working with Laravel is not on my priority list so it would require someone else to send in a PR.
Laravel VAT
See ibericode/vat-bundle for a Symfony version of this package.
laravel-vat is a package that contains the Laravel related wiring code for ibericode/vat, helping you deal with VAT legislation for businesses based in the EU.
- Fetch (historical) VAT rates for any EU member state using ibericode/vat-rates.
- Validate VAT numbers (by format, existence or both)
- Validate ISO-3316 alpha-2 country codes
- Determine whether a country is part of the EU
- Geolocate IP addresses
Installation
You can install this package via Composer:
The package will automatically register itself.
Usage
Check out the ibericode/vat README for general usage of this package.
Facades
You can use facades to retrieve an instance of the classes provided by ibericode/vat.
By default, VAT rates are cached for 24 hours using the default cache driver.
Validation
The package registers two new validation rules.
vat_number
The field under validation must be a valid and existing VAT number.
country_code
The field under validation must be a valid ISO-3316 alpha-2 country code.
Alternatively, you can also use the Rule
objects directly.
Localization
You can translate the validation error message by Using Translation Strings As Keys for the following strings:
resources/lang/de.json
License
MIT licensed.
All versions of laravel-vat with dependencies
ibericode/vat Version ^1.2
illuminate/contracts Version 5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|9.*
illuminate/support Version 5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|9.*