pemedina / checkvat
A simple php wrapper to check foreign VAT IDs using SOAP via http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
dev-master
2022-03-21 21:34 UTC
Requires
- php: >=7.4
- ext-soap: *
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2025-01-22 03:54:33 UTC
README
Introduction
A simple client for VIES.
Requirements
- PHP >= 7.4 (with soap support)
Getting started
Composer
$ composer require pemedina/checkvat
Usage
The library can be included & used on any PHP application.
Examples
<?php use CheckVat\checkVat as Vat; use CheckVat\checkVatService; require __DIR__ . '/vendor/autoload.php'; $service = new checkVatService(); $param = new Vat; $param->countryCode='ES'; $param->vatNumber='B78917457'; $result = $service->checkVat( $param); var_dump ( $result);
Feedback and questions
Found a bug or missing a feature? Don't hesitate to create a new issue here on GitHub.