• Stars
    star
    134
  • Rank 270,967 (Top 6 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 12 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Validate VAT identification numbers
VATIN
=====
[![Build Status](https://travis-ci.org/ddeboer/vatin.svg?branch=master)](https://travis-ci.org/ddeboer/vatin)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ddeboer/vatin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ddeboer/vatin/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/ddeboer/vatin/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/ddeboer/vatin/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/ddeboer/vatin/v/stable.png)](https://packagist.org/packages/ddeboer/vatin)

A small PHP library for validating VAT identification numbers (VATINs).

Installation
------------

This library is available on [Packagist](https://packagist.org/packages/ddeboer/vatin):

```bash
$ composer require ddeboer/vatin
```

If you want to use this library in a Symfony application, you can use the
[VatinBundle](https://github.com/ddeboer/vatin-bundle) instead.

Usage
-----

Validate a VAT number’s format:

```php
use Ddeboer\Vatin\Validator;

$validator = new Validator;
$bool = $validator->isValid('NL123456789B01');
```

Additionally check whether the VAT number is in use, with a call to the [VAT
Information Exchange System (VIES)](https://ec.europa.eu/taxation_customs/vies/faq.html#item_16) SOAP web service:

```php
use Ddeboer\Vatin\Validator;

$validator = new Validator;
$bool = $validator->isValid('NL123456789B01', true);
```

More Repositories

1

imap

Object-oriented, fully tested PHP IMAP library
PHP
846
star
2

data-import

Import data from and export data to a range of different file formats and media
PHP
567
star
3

DdeboerDataImportBundle

A Symfony2 bundle that offers a way to import data from and store data to a range of formats and media
PHP
70
star
4

GuzzleBundle

A Symfony2 bundle for integrating Guzzle, a PHP framework for building RESTful web service clients
PHP
63
star
5

DdeboerSalesforceMapperBundle

A Salesforce mapper bundle for Symfony2
PHP
27
star
6

vatin-bundle

Symfony bundle for the VATIN library
PHP
26
star
7

tesseract

A PHP wrapper for the Tesseract OCR engine
PHP
21
star
8

guzzle-aws

Guzzle Amazon Web Services (AWS) service
PHP
10
star
9

transcoder

Better encoding conversion for PHP
PHP
9
star
10

DdeboerSalesforceClientBundle

A replacement for the Salesforce PHP Toolkit in the form of a Symfony2 bundle
PHP
8
star
11

DdeboerDocumentManipulationBundle

PDF, Doc manipulation for Symfony2
PHP
5
star
12

DdeboerSshBundle

A small Symfony2 bundle for integrating Antoine Hérault’s PHP-SSH library into your Symfony2 project
PHP
5
star
13

GoogleBundle

Symfony2 Bundle for Google Analytics (Async Integration, Multi-Tracker Support, Default and Custom Page Views, Page View Queue, Ecommerce), Google Adwords, Google Maps (Static)
PHP
2
star
14

DdeboerSoapClientBundle

SOAP client bundle for Symfony2
PHP
2
star
15

headers

A PHP 5.3 library for working with HTTP and mail headers
PHP
2
star
16

guzzle-openkvk

A client for Openkvk.nl implemented in Guzzle
PHP
2
star
17

123symfony

Easy Symfony2 setup
PHP
1
star
18

blog

Blog
1
star
19

CurrencyConversionBundle

Currency conversion Symfony2 bundle
1
star
20

gallery

PHP
1
star
21

DdeboerLiveDocxBundle

LiveDocx bundle for Symfony2
PHP
1
star
22

DdeboerSalesforceBulkBundle

A Symfony2 PHP client for the Salesforce Bulk API
PHP
1
star
23

file

1
star
24

puppet-neo4j

A Puppet module that installs the Neo4j graph database
Puppet
1
star
25

DdeboerGeolocationBundle

Geolocation bundle for Symfony2
1
star
26

openkvk-client

A client for the Dutch Openkvk web service
1
star