Skip to content

v1.1

Compare
Choose a tag to compare
@dannyvankooten dannyvankooten released this 24 Feb 09:16

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.