File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 22
33Validate a VAT number against the official European Commission VIES VAT number validation SOAP service.
44
5+ ## Prerequisites
6+ 1 . PHP version 7 and above.
7+ 2 . php7.x-soap extension
8+
59## How to install
610
11+ <pre >
712composer require "toxicdigital/vat-validator"
13+ </pre >
814
915## How to use
1016
1117<pre >
12- <? php
1318
1419use Toxic\Validator\Vat as VatValidator;
1520
@@ -21,4 +26,15 @@ $validator->isValid("XY123456789");
2126//If VAT number is valid, company info is available
2227$validator->getCompany();
2328
29+ /*
30+ * Toxic\Validator\Vat\Company Object
31+ * (
32+ * [name] => John Doe
33+ * [address] => 123 Main St, Anytown, UK
34+ * [vatNumber] => 100
35+ * [countryCode] => GB
36+ * [valid] => true
37+ * )
38+ */
39+
2440</pre >
You can’t perform that action at this time.
0 commit comments