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. th3mouk/vatlayer

ActiveLibrary

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 today

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 30% 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

1850d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f31e3a808a4f015ebad005caa64866fc90e39475151fc95ef1e11f774d35505?d=identicon)[Th3Mouk](/maintainers/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

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.5M88](/packages/mezzio-mezzio)[mezzio/mezzio-problem-details

Problem Details for PSR-7 HTTP APIs addressing the RFC 7807 standard

271.0M20](/packages/mezzio-mezzio-problem-details)[mezzio/mezzio-cors

CORS component for Mezzio and other PSR-15 middleware runners.

17552.4k5](/packages/mezzio-mezzio-cors)[superfaktura/apiclient

Api client for SuperFaktura | online invoicing tool

20129.8k](/packages/superfaktura-apiclient)

PHPackages © 2026

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