PHPackages                             th3mouk/vatlayer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. th3mouk/vatlayer

AbandonedArchivedLibrary[API Development](/categories/api)

th3mouk/vatlayer
================

PHP wrapper of vatlayer.com

0.1.1(5y ago)01.4kMITPHPPHP &gt;=7.4

Since Jan 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Th3Mouk/vatlayer)[ Packagist](https://packagist.org/packages/th3mouk/vatlayer)[ RSS](/packages/th3mouk-vatlayer/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (17)Versions (3)Used By (0)

VatLayer API PHP wrapper
========================

[](#vatlayer-api-php-wrapper)

This PHP library is a wrapper of vatlayer.com respecting PSR18/PSR17/PSR7.

[![Latest Stable Version](https://camo.githubusercontent.com/63f62fe669df5201fdcdd99a914b911cd04b21953a6a903280b1bb5e58041b30/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7661746c617965722f762f737461626c65)](https://packagist.org/packages/th3mouk/vatlayer)[![Latest Unstable Version](https://camo.githubusercontent.com/4797395001527ebc0c78d81518a16602136bad511ee31e51b9691080b28fc98d/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7661746c617965722f762f756e737461626c65)](https://packagist.org/packages/th3mouk/vatlayer)[![Total Downloads](https://camo.githubusercontent.com/3e56be87f628cd90b30b42ce7bd1eb2e85f5ba1a33cf90572bf3c5eb04faf9ab/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7661746c617965722f646f776e6c6f616473)](https://packagist.org/packages/th3mouk/vatlayer)[![License](https://camo.githubusercontent.com/d5036848d8d1077f82d558490c0e4b34a5c67c6966464a5014b3406dc37b2784/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7661746c617965722f6c6963656e7365)](https://packagist.org/packages/th3mouk/vatlayer)

[![CI](https://github.com/th3Mouk/vatlayer/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/th3Mouk/vatlayer/workflows/Continuous%20Integration/badge.svg?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6b7b696ce754494bdbf6391549714cc94dc64011e169b619ac97c64c8169790c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5468334d6f756b2f7661746c617965722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/Th3Mouk/vatlayer/?branch=main)[![.gitattributes](https://camo.githubusercontent.com/f3e1fd0da20400697c5fe6beb13f5101eb470a86e66b2e79805133ee8d0949c0/68747470733a2f2f706f7365722e707567782e6f72672f7468336d6f756b2f7661746c617965722f67697461747472696275746573)](//packagist.org/packages/th3mouk/vatlayer)

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

[](#installation)

`composer require th3mouk/vatlayer`

Usage
-----

[](#usage)

```
use Th3Mouk\VatLayer\Psr18Wrapper;

// Client respecting PSR18
// @see https://packagist.org/providers/psr/http-client-implementation
$http_client = WhateverYouWant();

// Request factory respecting PSR17
// @see https://packagist.org/providers/psr/http-factory-implementation
$request_factory = WhateverYouWantToo();

// Or automatically take an http client with
// composer require php-http/discovery
$http_client = Psr18ClientDiscovery::find();
$request_factory = Psr17FactoryDiscovery::findRequestFactory();

$wrapper = new Psr18Wrapper('access_key', $http_client, $request_factory);
$response = $wrapper->validate('vat_number');
```

Endpoints coverage
------------------

[](#endpoints-coverage)

[Original documentation](https://vatlayer.com/documentation)

- VAT Number Validation
- Get VAT Rates via Country Code
- Get VAT Rates via IP Address
- Get VAT Rates via Client IP
- Retrieve all EU VAT Rates
- VAT Compliant Price Calculation

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~48 days

Total

2

Last Release

1944d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5006899?v=4)[Jérémy](/maintainers/Th3Mouk)[@Th3Mouk](https://github.com/Th3Mouk)

---

Top Contributors

[![Th3Mouk](https://avatars.githubusercontent.com/u/5006899?v=4)](https://github.com/Th3Mouk "Th3Mouk (5 commits)")

---

Tags

api-wrapperpsr17psr18psr7vatlayer

###  Code Quality

TestsPest

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/th3mouk-vatlayer/health.svg)

```
[![Health](https://phpackages.com/badges/th3mouk-vatlayer/health.svg)](https://phpackages.com/packages/th3mouk-vatlayer)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60315.4M74](/packages/mollie-mollie-api-php)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.6M46](/packages/getbrevo-brevo-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
