vat.php v1.1 Release Notes

Release Date: 2017-02-24 // about 7 years ago
  • ๐Ÿš€ 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.