Download the PHP package codedge/laravel-bzst-evatr without Composer

On this page you can find all versions of the php package codedge/laravel-bzst-evatr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package laravel-bzst-evatr

Laravel 5 package for EVATR - Validating VAT IDs

Latest Stable Version Build Status StyleCI codecov License

This library is a wrapper for the XmlRPC interface to validate European VAT IDs.
See https://evatr.bff-online.de/eVatR/xmlrpc/ (German version).

With this library you can check an European VAT ID if it is valid. Additionally you can pass in and address of this European VAT ID and do an address check.

The library supports the simple and the qualified request.

All error messages are available in English or German - of course you can modify those as you like.

Install with Composer

To install the library using Composer:

This adds the codedge/laravel-bzst-evatr package to your composer.json and downloads the project.

Next run: php artisan vendor:publish to publish the translation files of the library to resources/lang/vendor/evatr/<locale>/messages.php.

Don't forget to add the Service Provider to your config/app.php [1] and optionally the facade [2]:

Usage

If using the facade, just do:

Alternatively you can use the dependency injection of the singleton instance like so:

All date and time methods return a Carbon instance for better and further handling.

Request - Available methods and fields

Depending if you want to send a simple or qualified request please see what parameters need to be set:

Field name Description Simple request Qualified request Method name
Own VAT ID Your German VAT ID x x setOwnUstId, alias: setUstId1
Foreign VAT ID The requested VAT ID x x setForeignUstId, alias: setUstId2
Company name Name of the requested company x setCompanyName
City City of the requested company x setCityName
Zip code Zip code of the req. company optional setZipCode
Street Street of the req. company optional setStreet
Print conf. Official confirmation msg optional setPrintConfirmation

Response - Available methods and fields

Additionally to the response field the response returns the following fields:

Field name Description Method name
Error Code See avail. error codes getErrorCode
Error Message See avail. error messages getErrorMessage
Date Date of the request getDate
Time Time of the request getTime
Valid from Start date of validity of the foreign VAT ID. Only filled with error code 203 and 204. getValidFrom
Valid until End date of validity of the foreign VAT ID. Only filled with error code 204. getValidUntil
Erg_Name Result for the requested company name getResponseCompany
Erg_City Result for the requested company city getResponseCity
Erg_Street Result for the requested company street getResponseStreet
Erg_PLZ Result for the requested company zip code getResponseZipCode

Each of these result fields can have one of the following results:

Result Description
A Matches the requested value
B Does not match the requested value
C Not requested
D Not provided by EU member state

All versions of laravel-bzst-evatr with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version 5.*
phpxmlrpc/phpxmlrpc Version ~4.0
nesbot/carbon Version ~1.20
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 codedge/laravel-bzst-evatr contains the following files

Loading the files please wait ....