Download the PHP package omisai/vies-soap without Composer

On this page you can find all versions of the php package omisai/vies-soap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package vies-soap

PHP VIES SOAP

Latest Version on Packagist License Test PHP Version Require

A lightweight, type-safe PHP package for validating EU VAT numbers via the European Commission's VIES (VAT Information Exchange System) SOAP service.

Features

Requirements

Installation

Install the package via Composer:

Quick Start

Basic VAT Validation

Using the Test Service

For development and testing, use the VIES test service:

Configuration

Environment Configuration

SOAP Client Options

You can pass additional SOAP client options to customize the HTTP requests:

API Reference

ViesClient

The main client class for interacting with VIES services.

Constructor

Methods

checkVat(string $countryCode, string $vatNumber): CheckVatResponse

Validates a VAT number and returns basic information.

Parameters:

Returns: CheckVatResponse object

Example:

checkVatApprox(CheckVatApproxRequest $request): CheckVatApproxResponse

Performs approximate VAT validation with trader details for enhanced verification.

Parameters:

Returns: CheckVatApproxResponse object

Example:

Data Transfer Objects (DTOs)

CheckVatResponse

Contains the response from a basic VAT check.

Properties:

CheckVatApproxResponse

Contains the response from an approximate VAT check with detailed matching information.

Properties:

CheckVatApproxRequest

Request object for approximate VAT validation.

Constructor parameters:

Supported Countries

The package supports all current EU member states plus Northern Ireland (XI):

Code Country Code Country Code Country
AT Austria EL Greece MT Malta
BE Belgium ES Spain NL Netherlands
BG Bulgaria FI Finland PL Poland
CY Cyprus FR France PT Portugal
CZ Czechia HR Croatia RO Romania
DE Germany HU Hungary SE Sweden
DK Denmark IE Ireland SI Slovenia
EE Estonia IT Italy SK Slovakia
LV Latvia XI Northern Ireland
LT Lithuania
LU Luxembourg

Country Code Validation

Error Handling

The package provides structured exception handling for different error scenarios.

Validation Errors

SOAP Service Errors

Common Exception Types

Advanced Usage

Custom SOAP Client

You can inject custom SOAP client implementations for testing or advanced scenarios:

Custom Validation

Batch Processing

Testing

Run the test suite using Pest:

Testing with Mock Data

The package includes test helpers for mocking SOAP responses:

Performance Considerations

Limitations

Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

Security

Please see SECURITY.md for details on reporting security vulnerabilities.

License

This package is open-sourced software licensed under the MIT license.

Sponsoring

If you find this package useful, please consider sponsoring the development: Sponsoring on GitHub

Your support helps us maintain and improve this open-source project!

Official VIES Documentation


All versions of vies-soap with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-soap Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package omisai/vies-soap contains the following files

Loading the files please wait ...