Download the PHP
package weareantenna/vat without Composer
On this page you can find all versions of the php package
weareantenna/vat. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
This library will help you deal with VAT numbers in a controlled manner. It uses the DragonBe/vies package to first validate the format of an EU VAT number. Afterwards, you can validate if the number has been issued with the VIES validator.
Installation
This package requires PHP 7.1 or higher.
Usage
You should build support into your application for the VIES service to be unavailable. Either VIES itself, or the underlying services VIES uses, are known to be unavailable from time to time. Either trust your users or implement some kind of retry method.
Formatting
The VatNumber class retains the formatting of the entered VAT number. This is convenient when you want to save exactly what your users have entered or are dealing with legacy data.
A method to normalize numbers is provided, which will uppercase the entire VAT number and strip all non-alphanumeric characters.
In case you want to further format VAT numbers, it is possible to implement a Antenna\Formatter\Formatter interface.
Included in this package is a TeamleaderFormatter. This formatter will format VAT numbers exactly as Teamleader CRM does internally.
This will help you find companies through their API as VAT numbers need to formatted in their format.
Requiresphp Version
^7.2|^8.0 ext-soap Version
* dragonbe/vies Version
^2.1
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package weareantenna/vat contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.