{"id":20375277,"url":"https://github.com/cba85/eu-vat-validation","last_synced_at":"2025-04-12T07:18:26.448Z","repository":{"id":44817817,"uuid":"76880195","full_name":"cba85/eu-vat-validation","owner":"cba85","description":"💰 A PHP package to verify the validity of a VAT number issued by any European Union Member State.","archived":false,"fork":false,"pushed_at":"2022-01-22T14:56:14.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T07:18:21.540Z","etag":null,"topics":["countries","php","tax","vat-number","verify","vie"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cba85.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-19T16:55:15.000Z","updated_at":"2022-01-12T07:15:57.000Z","dependencies_parsed_at":"2022-08-28T22:12:32.866Z","dependency_job_id":null,"html_url":"https://github.com/cba85/eu-vat-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Feu-vat-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Feu-vat-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Feu-vat-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cba85%2Feu-vat-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cba85","download_url":"https://codeload.github.com/cba85/eu-vat-validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530602,"owners_count":21119601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","php","tax","vat-number","verify","vie"],"created_at":"2024-11-15T01:29:36.775Z","updated_at":"2025-04-12T07:18:26.429Z","avatar_url":"https://github.com/cba85.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# European VAT number validation\n\nA PHP package to verify the validity of a VAT number issued by any European Union Member State.\n\nThis package is basically calling web service provided by VIES for VAT number validation.\n\nVIES API documentation : http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl\n\nThis package allows you to :\n- validate a VAT number\n- retrieve information like the name or the address of the company\n\n## What is a VAT number?\n\nA value added tax identification number or VAT identification number (VATIN) is an identifier used in many countries, including the countries of the European Union, for value added tax purposes.\n\n## Installation\n\nInstall using Composer :\n\n```\n$ composer require cba85/eu-vat-validation dev-master\n```\n\nYou must have PHP with Soap enabled.\n\n## Usage\n\n```php\n$vatValidation = new Validation('FR12345678910');\n\n/*\n * Check VAT\n */\n$vat = $vatValidation-\u003echeckVat();\n\n/*\n * Is VAT ID valid ?\n */\n$valid = $vatValidation-\u003eisValid();\n```\n\nYou'll find more examples in the ``example`` folder.\n\n## Returns\n\n### Check VAT\n\n```php\nArray (\n    [countryCode] =\u003e FR\n    [vatNumber] =\u003e 12345678910\n    [requestDate] =\u003e 2016-12-19+01:00\n    [valid] =\u003e\n    [name] =\u003e ---\n    [address] =\u003e ---\n)\n```\n\n### Check VAT approx.\n\n```php\nArray(\n\t[countryCode] =\u003e FR\n    [vatNumber] =\u003e 12345678910\n    [requestDate] =\u003e 2016-12-19+01:00\n    [valid] =\u003e\n    [traderName] =\u003e ---\n    [traderCompanyType] =\u003e ---\n    [traderAddress] =\u003e ---\n    [requestIdentifier] =\u003e\n)\n```\n\n## Tests\n\nIf TVA rates evolve, change the results expected.\n\n```bash\n$ ./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/ValidationTest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Feu-vat-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcba85%2Feu-vat-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcba85%2Feu-vat-validation/lists"}