NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2286 most downloaded on Packagist
PHP library for dealing with EU VAT
Latest stable
2.2.2
Last release 1 months ago
20 Oct 2026
Release timing varies
gaps range from 2 weeks to 1.6 years
Most releases are documented
notes for 22 of 27 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
27 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Fix exception on every call after upgrading to 2.2 when a rates cache file from an earlier version exists. An unreadable cache file is now treated as
Full Changelog: https://github.com/ibericode/vat/compare/2.2.1...2.2.2
Revert GR EL normalization by @VAT-DIGITAL-ED in https://github.com/ibericode/vat/pull/86
Full Changelog: https://github.com/ibericode/vat/compare/2.2...2.2.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: https://github.com/ibericode/vat/compare/2.1.1...2.1.2
Full Changelog: https://github.com/ibericode/vat/compare/2.1.1...2.1.2
Remove deprecated function curl_close by @trippo in https://github.com/ibericode/vat/pull/80
Full Changelog: https://github.com/ibericode/vat/compare/2.1...2.1.1
PHP 8.4 compatibility
declare visibility on class constants
Rates classAdd missing ISO-3611 countries to Countries class. Thanks @dennisoderwald.
Countries class. Thanks @dennisoderwald.Exception when cached rates file contains invalid content that could not be unserialized.Add Countries::getCountryCodesInEU() method. Thanks @Kilbourne
Countries::getCountryCodesInEU() method. Thanks @KilbourneEU. Thanks @uldisnSM prefixes. Thanks @simonevallanaAvoid deprecation warnings on PHP 8.1 (props @franmomu)
Nothing published for this version
Brexit transition period ends on Dec 31, so
Brexit transition period ends on Dec 31, so
Countries::isCountryCodeInEU(string $country_code)
will return false starting 2021-01-01 00:00:00
Ditch client for jsonvat.com as it is discontinued. This package already was already using the client for ibericode/vat-rates by default.
Ditch client for jsonvat.com as it is discontinued. This package already was already using the client for ibericode/vat-rates by default.
If you were manually using Ibericode\Vat\Clients\JsonVatClient in your code then change it to use Ibericode\Vat\Clients\IbericodeVatRatesClient instead.
$client = new Ibericode\Vat\Clients\IbericodeVatRatesClient();
$rates = new Ibericode\Rates\Rates('/path-for-storing-cache-file.txt', 12 * 3600, $client);
Fixes an issue with invalid ES, IE and GB VAT numbers being accepted (when given a valid VAT number with a suffix or prefix). Thanks to @Swop for catc
Nothing published for this version
remove phpcs from 1.x workflow
remove phpcs from 1.x workflow
validateCountryCode method on Countries class.
Additions
validateCountryCode method on Countries class.validateIpAddress method on Countries class.Improvements
Nothing published for this version
Nothing published for this version
VIES SOAP client is now lazy instantiated
VIES SOAP client is now lazy instantiated
This release allows you to configure a custom timeout for the VIES client via constructor parameters.
This release allows you to configure a custom timeout for the VIES client via constructor parameters.
Require psr/simple-cache and have NullCache implement it, thanks to @Jarlskov.
Require psr/simple-cache and have NullCache implement it, thanks to @Jarlskov.
Set required PHP version in composer.json to PHP 5.6
composer.json to PHP 5.6Nothing published for this version
fix: correctness, compatibility, and improvements by @solracsf in https://github.com/ibericode/vat/pull/83
Full Changelog: https://github.com/ibericode/vat/compare/2.1.2...2.2
Remove SM from VAT validation patterns
SM from VAT validation patternsGB from VAT validation patternsXI to VAT validation patternsVersion 2.0 release is a complete rewrite, resulting in a much simpler and more usable public API. Check out the README for updated usage examples.
Version 2.0 release is a complete rewrite, resulting in a much simpler and more usable public API. Check out the README for updated usage examples.
The package has moved to a new Composer package name as well. It's now called ibericode/vat.
This release allows you to fetch the VAT rates for any future or past date thanks to a pull request by @bpolaszek.
This release allows you to fetch the VAT rates for any future or past date thanks to a pull request by @bpolaszek.
*Example: *
This fetches the VAT rate in The Netherlands (NL) on 2010-01-01.
$rates = new DvK\Vat\Rates\Rates();
$rates->country('NL', 'standard', new \Datetime('2010-01-01')); // 19
Because this change requires VAT periods to be stored in the Rates class, the Rates::all() method now returns a slightly different array format. See the inline docs on the Client interface for details on the format.
One column per quarter.