Download the PHP package burtds/laravel-vatnumber-checker without Composer
On this page you can find all versions of the php package burtds/laravel-vatnumber-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download burtds/laravel-vatnumber-checker
More information about burtds/laravel-vatnumber-checker
Files in burtds/laravel-vatnumber-checker
Package laravel-vatnumber-checker
Short Description A simple VAT Number checker package for Laravel.
License MIT
Informations about the package laravel-vatnumber-checker
About laravel-vatnumber-checker
A small package that allows you to easily retrieve information associated with a VAT number. Verification of validity, company name, and address of the company is only one api call away.
How to use laravel-vatnumber-checker
Installation
You can install the package via composer:
Afterwords, you're able to fetch your desired information.
Usage
This packages uses an API provided by the European Commission called "VIES".
We'll need to import the Facade of this package on top of your file.
Once that is done, you'll be able to use the provide functions. For this example we're using the VAT Number of Vulpo BV.
There is also single parameter support for all methods.
Validation Rule
This package also provides a simple validation rule.
This example will pass the validation when the provided vat number is valid. If not, it will return a neat error message.
Testing & Code Formatting
For testing you can run:
For formatting the code using Laravel Pint you can run:
Security Vulnerabilities
If you discover a security vulnerability within this package, please send me an e-mail via [email protected]. I'll get back at you as soon as possible.
Credits
- Bert De Swaef
- All Contributors
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-vatnumber-checker with dependencies
guzzlehttp/guzzle Version ^7.2
spatie/laravel-package-tools Version ^1.16