PHPackages                             owowagency/laravel-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. owowagency/laravel-vatlayer

ActiveLibrary[API Development](/categories/api)

owowagency/laravel-vatlayer
===========================

Laravel Vatlayer is a very small package which helps you connect your Laravel application with the Vatlayer API

1.0.0(5y ago)0661[2 PRs](https://github.com/owowagency/laravel-vatlayer/pulls)MITPHPPHP ^7.2CI failing

Since Jun 29Pushed 5y agoCompare

[ Source](https://github.com/owowagency/laravel-vatlayer)[ Packagist](https://packagist.org/packages/owowagency/laravel-vatlayer)[ RSS](/packages/owowagency-laravel-vatlayer/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (12)Versions (4)Used By (0)

Laravel Vatlayer API
====================

[](#laravel-vatlayer-api)

[![Latest Stable Version](https://camo.githubusercontent.com/31f6fdbe9b24986c07f02b7bc5e081fa5b69feadc9c8cbb72c9bafddb4d5136f/68747470733a2f2f706f7365722e707567782e6f72672f6f776f776167656e63792f6c61726176656c2d7661746c617965722f762f737461626c65)](https://packagist.org/packages/owowagency/laravel-vatlayer)[![Total Downloads](https://camo.githubusercontent.com/c442ea731c007a5139e8dd07663a4103d37c7136882897f817049cb9637a4747/68747470733a2f2f706f7365722e707567782e6f72672f6f776f776167656e63792f6c61726176656c2d7661746c617965722f646f776e6c6f616473)](https://packagist.org/packages/owowagency/laravel-vatlayer)[![Build status](https://camo.githubusercontent.com/0fcd21248f5b1a4e87e089010ab59e9ad5e866ba1cda6ccc8bb2474875b69f7d/68747470733a2f2f7472617669732d63692e6f72672f6f776f776167656e63792f6c61726176656c2d7661746c617965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/owowagency/laravel-vatlayer)

Laravel Vatlayer is a very small package which helps you connect your Laravel application with the [Vatlayer API](https://vatlayer.com/).

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

[](#installation)

Installation is very quick and easy. Install the package via Composer and you're ready to go.

```
composer require owowagency/laravel-vatlayer
```

Setup
-----

[](#setup)

The package requires an API key from the Vatlayer API. You can request one [here](https://vatlayer.com/product). Once set up, you need to add the following config to your `services.php` config file:

```
'vatlayer' => [
    'key' => env('VATLAYER_KEY'),
    'encrypted' => env('VATLAYER_ENCRYPTED', false)
],
```

You can now set your API key in your `.env` file. The `encrypted` boolean indicates if the API request should be made over https or http. This depends on the subscription plan you're using. If you're using the free plan you should set this variable to `false`, if you've a paid subscription, definitely set this variable to `true`.

Usage
-----

[](#usage)

The package comes with a Facade helper to quickly call any of the methods. Currently the package only ships with two usable methods.

### Execute a validate request

[](#execute-a-validate-request)

To check if the VAT number has a valid format, valid value and to receive the name and address of the company which belongs to the VAT number you should call the `validate($vatNumber)` method.

```
$response = \Vatlayer::validate('NL123456789B01');

// The response looks like:
$response = [
  'valid' => true,
  'format_valid' => true,
  'query' => 'NL123456789B01',
  'country_code' => 'NL',
  'vat_number' => '855020970B01',
  'company_name' => 'OWOW PROJECTS B.V.',
  'company_address' => ' FUUTLAAN 00014 UNIT E 5613AB EINDHOVEN ',
];
```

### Check VAT number

[](#check-vat-number)

To quickly check if a VAT number is valid use the `isValidVatNumber($vatNumber)` method. This method returns a boolean to check if the number has a valid format and is a known European VAT number.

```
$valid = \Vatlayer::isValidVatNumber('NL123456789B01');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b0064d818f9593dfb4f9d86217bbf5f14961ad6779b84fd5546dd91f296d898?d=identicon)[dees040](/maintainers/dees040)

---

Top Contributors

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

---

Tags

laravelOWOWvatlayer

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[irazasyed/telegram-bot-sdk

The Unofficial Telegram Bot API PHP SDK

3.3k4.5M84](/packages/irazasyed-telegram-bot-sdk)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[dcblogdev/laravel-xero

A Laravel Xero package

53129.1k1](/packages/dcblogdev-laravel-xero)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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