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

ActiveLibrary

alxdorosenco/vatlayer-for-laravel
=================================

This package helps working with VatLayer service on the Laravel framework

v1.0.1(3y ago)18MITPHPPHP ^7.1|^8.0

Since Apr 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/alxdorosenco/vatlayer-for-laravel)[ Packagist](https://packagist.org/packages/alxdorosenco/vatlayer-for-laravel)[ Docs](https://github.com/alxdorosenco/vatlayer-for-laravel)[ RSS](/packages/alxdorosenco-vatlayer-for-laravel/feed)WikiDiscussions main Synced 1mo ago

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

Vatlayer for Laravel
====================

[](#vatlayer-for-laravel)

This is a package of the service Vatlayer adapted for Laravel framework. You can find additional information in the documentation via this link

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

How to install?
===============

[](#how-to-install)

1. First of all you need to install the package: ```
    composer require alxdorosenco/vatlayer-for-laravel

    ```
2. Next, you need to put access key in your .env file: ```
    VATLAYER_ACCESS_KEY=

    ```
3. Also, you can export config file of the package ```
    php artisan vendor:publish --provider="AlxDorosenco\VatlayerForLaravel\VatlayerServiceProvider" --tag="config"

    ```

Endpoint 1: Simple VAT number validation
----------------------------------------

[](#endpoint-1-simple-vat-number-validation)

"validate" endpoint

```
Vatlayer::validate()->setVatNumber('LU26375245')->toArray();
Vatlayer::validate()->setVatNumber('LU26375245')->setFormat(1)->toJson();
```

```
Vatlayer::validate()
                ->setVatNumber('LU26375245')
                ->setCallback('CALLBACK_FUNCTION')
                ->setFormat(1)
                ->toJson();
```

Endpoint 2: VAT rate for single EU member state
-----------------------------------------------

[](#endpoint-2-vat-rate-for-single-eu-member-state)

"rate" endpoint - via country code

```
Vatlayer::rate()->setCountryCode('GB')->toArray();
Vatlayer::rate()->setCountryCode('GB')->setFormat(1)->toJson();
```

"rate" endpoint - via custom IP address

```
Vatlayer::rate()->setIpAddress('176.249.153.36')->toArray();
Vatlayer::rate()->setIpAddress('176.249.153.36')->setFormat(1)->toJson();
```

"rate" - get EU VAT rate for a specific country - via client IP address

```
Vatlayer::rate()->setCountryCode('GB')->setClientIp(1)->toArray();
Vatlayer::rate()->setCountryCode('GB')->setClientIp(1)->toJson();
```

Endpoint 3: VAT rates for all EU member states
----------------------------------------------

[](#endpoint-3-vat-rates-for-all-eu-member-states)

"rate\_list" endpoint

```
Vatlayer::rateList()->toArray();
Vatlayer::rateList()->setFormat(1)->toJson();
```

Endpoint 4: Price calculation
-----------------------------

[](#endpoint-4-price-calculation)

"price" endpoint

```
Vatlayer::price()->setAmount(100)
                ->setCountryCode('GB')
                ->setType('medical')
                ->setIncl(1)
                ->toArray();

Vatlayer::price()->setAmount(100)
                ->setCountryCode('GB')
                ->setType('medical')
                ->setIncl(1)
                ->setFormat(1)
                ->toJson();
```

Endpoint 5: Reduced VAT Rates - Types of Goods
----------------------------------------------

[](#endpoint-5-reduced-vat-rates---types-of-goods)

"types" endpoint

```
Vatlayer::types()->toArray();
Vatlayer::types()->setFormat(1)->toJson();
```

License
-------

[](#license)

Released under the MIT License, see [LICENSE](LICENSE).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Every ~11 days

Total

2

Last Release

1116d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

v1.0.1PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c8394b8b5a0ee00734763f1295522bde2c829bfe15bfdfb38234b76c6c79d43e?d=identicon)[AlxDorosenco](/maintainers/AlxDorosenco)

---

Top Contributors

[![alxdorosenco](https://avatars.githubusercontent.com/u/63168699?v=4)](https://github.com/alxdorosenco "alxdorosenco (9 commits)")

---

Tags

phplaravelratesvateularavel-vatvatlayerinstant-vat-numberlaravel-vatlayervatlayer-for-laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[octw/aramex

A Library to integrate with Aramex APIs

2925.2k](/packages/octw-aramex)

PHPackages © 2026

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