uawdijnntqw1x1x1
IP : 216.73.216.46
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
convergine
/
..
/
ibericode
/
.
/
vat
/
README.md
/
/
vat.php ================ [](https://travis-ci.org/dannyvankooten/vat.php) [](https://packagist.org/packages/dannyvankooten/vat.php)    vat.php is a simple PHP library which helps you to deal with European VAT rules. It helps you... - Fetch (historical) VAT rates for any European member state using [jsonvat.com](https://github.com/adamcooke/vat-rates) - Validate VAT numbers (by format, [existence](http://ec.europa.eu/taxation_customs/vies/) or both) - Validate ISO-3316 alpha-2 country codes - Determine whether a country is part of the EU - Geolocate IP addresses The library uses jsonvat.com to obtain its data for the VAT rates. Full details can be seen [here](https://github.com/adamcooke/vat-rates). For VAT number validation, it uses [VIES VAT number validation](http://ec.europa.eu/taxation_customs/vies/). ## Installation [PHP](https://php.net) version 7.1 or higher is required. For VAT number existence checking, the PHP SOAP extension is required as well. To get the latest version of vat.php, simply require the project using [Composer](https://getcomposer.org): ```bash $ composer require dannyvankooten/vat.php ``` ## Usage This library exposes 3 main classes to interact with, `Rates`, `Countries` and `Validator`. #### Fetching VAT rates. ```php $rates = new DvK\Vat\Rates\Rates(); $rates->country('NL'); // 21 $rates->country('NL', 'standard'); // 21 $rates->country('NL', 'standard', new \Datetime('2010-01-01')); // 19 $rates->country('NL', 'reduced'); // 6 $rates->all(); // array in country code => rates format ``` #### Validating a VAT number ```php $validator = new DvK\Vat\Validator(); $validator->validate('NL50123'); // false $validator->validateFormat('NL203458239B01'); // true (checks format) $validator->validateExistence('NL203458239B01'); // false (checks existence) $validator->validate('NL203458239B01'); // false (checks format + existence) ``` #### Dealing with countries & geolocation ```php $countries = new DvK\Vat\Countries(); $countries->all(); // array of country codes + names $countries->name('NL') // Netherlands $countries->europe(); // array of EU country codes + names $countries->inEurope('NL'); // true $countries->ip('8.8.8.8'); // US ``` ## License vat.php is licensed under the [MIT License](LICENSE).
/srv/users/craft4/apps/craft4-newsite-space/vendor/convergine/../ibericode/./vat/README.md