Skip to content

Releases: ibericode/vat

2.0.9

02 Nov 09:25
Compare
Choose a tag to compare
  • declare visibility on class constants
  • add void return type declarations in Rates class
  • improve validation regex for Belgian VAT numbers, thanks @gert-creatic

2.0.8

06 Sep 08:28
Compare
Choose a tag to compare
  • Add missing ISO-3611 countries to Countries class. Thanks @dennisoderwald.
  • Throw Exception when cached rates file contains invalid content that could not be unserialized.
  • Fix tests to no longer test against ip2country.info API.

2.0.7

01 Aug 08:39
2a8b910
Compare
Choose a tag to compare
  • Add Countries::getCountryCodesInEU() method. Thanks @Kilbourne
  • Add validation pattern for VAT numbers prefixed with EU. Thanks @uldisn
  • Add validation pattern for SM prefixes. Thanks @simonevallana
  • Ignore tests and development related files during Git export. Thanks @VincentLanglet
  • Add SOAP as a required PHP extension. Thanks @BrekiTomasson

2.0.6

15 Nov 12:32
59831d6
Compare
Choose a tag to compare
  • Use HTTPS for VIES service (props @gemal)
  • Avoid deprecation warnings on PHP 8.1 (props @franmomu)

2.0.5: Merge pull request #34 from mixisLv/patch-1

30 Dec 17:04
b12b6e4
Compare
Choose a tag to compare

2.0.4

17 Dec 12:44
Compare
Choose a tag to compare

Brexit transition period ends on Dec 31, so

Countries::isCountryCodeInEU(string $country_code)

will return false starting 2021-01-01 00:00:00

2.0.3

17 Apr 07:48
Compare
Choose a tag to compare

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);

2.0.2

16 Jan 09:10
Compare
Choose a tag to compare
  • 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 catching it.

v2.0

11 Feb 12:23
Compare
Choose a tag to compare

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.

v1.2.1

07 Feb 10:47
Compare
Choose a tag to compare

Additions

  • validateCountryCode method on Countries class.
  • validateIpAddress method on Countries class.

Improvements

  • Use HTTPS protocol for ip2c.org geo-location service.
  • Bump package requirement to PHP 7.1 or later
  • Add argument and return type declarations
  • Don't issue HTTP request for IP geo-location if IP isn't valid or is in local range