Releases: ibericode/vat
Releases · ibericode/vat
v1.2.1
Additions
validateCountryCode
method onCountries
class.validateIpAddress
method onCountries
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
v1.1.2
VIES SOAP client is now lazy instantiated
v1.1.1
This release allows you to configure a custom timeout for the VIES client via constructor parameters.
v1.1
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.
v1.0.2
v1.0.1
- Set required PHP version in
composer.json
to PHP 5.6 - Use CURL with 10 second timeout for IP geolocation & retrieving VAT rates
v1.0.0
first commit