All Projects → AMBERSIVE → laravel-vatvalidator

AMBERSIVE / laravel-vatvalidator

Licence: other
Package to validate a vat id via the api of the european union (vies)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-vatvalidator

Clamav Validator
Laravel virus validator based on ClamAV anti-virus scanner
Stars: ✭ 224 (+1393.33%)
Mutual labels:  validator, laravel-package
laravel-crm
Free & Opensource Laravel CRM solution for SMEs and Enterprises for complete customer lifecycle management.
Stars: ✭ 927 (+6080%)
Mutual labels:  laravel-package
Laravel-Crud-Generator
A Simple Laravel Library that allows to create crud operation with a single command
Stars: ✭ 20 (+33.33%)
Mutual labels:  laravel-package
eloquent-repository
Repository pattern for Eloquent ORM with focus in cache.
Stars: ✭ 30 (+100%)
Mutual labels:  laravel-package
laravel-package
Laravel package template
Stars: ✭ 31 (+106.67%)
Mutual labels:  laravel-package
tall-toasts
A Toast notification library for the Laravel TALL stack. You can push notifications from the backend or frontend to render customizable toasts with almost zero footprint on the published CSS/JS 🔥🚀
Stars: ✭ 296 (+1873.33%)
Mutual labels:  laravel-package
validate-framework
validate-framework:一款轻量、无依赖的 JavaScript 验证组件
Stars: ✭ 55 (+266.67%)
Mutual labels:  validator
crystal-validator
💎 Data validation module for Crystal lang
Stars: ✭ 23 (+53.33%)
Mutual labels:  validator
response
Response HTTP package for Simfony, Laravel, Lumen and PHP 7 with standard REST API
Stars: ✭ 14 (-6.67%)
Mutual labels:  laravel-package
laravel-twig
Twig for Laravel Framework
Stars: ✭ 16 (+6.67%)
Mutual labels:  laravel-package
qqmap-region
腾讯位置服务中国标准行政区划数据 SDK
Stars: ✭ 22 (+46.67%)
Mutual labels:  laravel-package
naija-phone-number
A fast minimal module to validate Nigerian mobile phone numbers using Regular Expressions.
Stars: ✭ 43 (+186.67%)
Mutual labels:  validator
laravel-error-handler
Laravel 5.2/5.3 package for better exception handling.
Stars: ✭ 15 (+0%)
Mutual labels:  laravel-package
govalidators
struct 验证器,内置大部分常用验证,可自定义
Stars: ✭ 56 (+273.33%)
Mutual labels:  validator
schema
SpaceAPI JSON schema files.
Stars: ✭ 20 (+33.33%)
Mutual labels:  validator
correios-consulta
Buscar informações de serviços dos correios diretamente nos sites deles, sem utilizar api de terceiros.
Stars: ✭ 155 (+933.33%)
Mutual labels:  laravel-package
laravel-php-k8s
Just a simple port of renoki-co/php-k8s for easier access in Laravel
Stars: ✭ 71 (+373.33%)
Mutual labels:  laravel-package
query-filter
Define filters for your Eloquent models based on your request
Stars: ✭ 20 (+33.33%)
Mutual labels:  laravel-package
canvas
Code Generators for Laravel Applications and Packages
Stars: ✭ 139 (+826.67%)
Mutual labels:  laravel-package
wily
Build Node.js APIs from the command line (Dead Project 😵)
Stars: ✭ 14 (-6.67%)
Mutual labels:  validator

VAT VALIDATOR

Maintainability tests

Validating the vat id from another company is a requirement within the european union. This package validates the vat id + give you further information about the company behind the vat id. The CHANGELOG offers an overview ob the changes done by us.

Installation

composer require ambersive/vatvalidator

Optional: Publish the config

php artisan vendor:publish --tag=vat-validator

Usage

This package comes with a Facade so using this functionality if easy.

use VatValidator;

$result = VatValidator::check("ATU69434329");

The result is typed an will return you a VatCompany Class. This class offers you following methods:

$result->isValid(); // Returns a boolean value
$result->getName(); // Returns the company name
$result->getAddress(); // Returns the company address
$result->getCountry(); // Returns the Country code
$result->getNumber(); // Returns the TAX number.

Validation rule

This package also offers you a validation rule you there would be no need to do all that stuff manually.

$validator = Validator::make(['vatid' => 'ATU69434328'], [
    'vatid' => 'vat_eu'
]);

Behind the scene

This package is using the CheckVat Service from the european union to check if a tax id is valid. It is a soap client, so make sure your server is ready for soap class.

Feedback

Please feel free to give us feedback or any improvement suggestions.

Security Vulnerabilities

If you discover a security vulnerability within this package, please send an e-mail to Manuel Pirker-Ihl via [email protected]. All security vulnerabilities will be promptly addressed.

License

This package is open-sourced software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].