Download the PHP package billingserv/uk-vat-validator without Composer
On this page you can find all versions of the php package billingserv/uk-vat-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download billingserv/uk-vat-validator
More information about billingserv/uk-vat-validator
Files in billingserv/uk-vat-validator
Package uk-vat-validator
Short Description A Composer package to validate UK VAT numbers using the HMRC API.
License MIT
Homepage https://www.billingserv.com
Informations about the package uk-vat-validator
VAT Validator for UK Businesses
BillingServ
VAT Validator is a Composer package developed by BillingServ that allows UK businesses to verify VAT numbers using the HMRC VAT API. This package supports both live and sandbox environments.
Features
- Verify UK VAT numbers.
- Obtain a consultation number when a business needs to verify a customer's VAT number.
- Supports live and sandbox environments.
- Fully open-source and free to use.
Installation
Requirements
- PHP 8.0+
- Composer
- Laravel
Install via Composer
Publish Configuration (Laravel Only)
Configuration
After installation, add your HMRC API credentials to your .env
file:
Usage
1. Verify a VAT Number
2. Obtain a Consultation Number
Live and Sandbox Mode
Set HMRC_USE_SANDBOX=true
in the .env
file to enable sandbox mode. If set to false
, the package will use live mode automatically.
Testing
To run tests, use PHPUnit:
License
This package is open-source and available for everyone to use under the MIT License.
Credits
Developed by BillingServ. Contributions are welcome!
Support
For issues, please open an issue on GitHub or contact [email protected].