{"id":39855864,"url":"https://github.com/dmt-software/eu-vat-validation","last_synced_at":"2026-01-20T17:59:35.563Z","repository":{"id":33278947,"uuid":"157078678","full_name":"dmt-software/eu-vat-validation","owner":"dmt-software","description":"A PHP implementation of the VIES Vat validation service ","archived":false,"fork":false,"pushed_at":"2025-11-01T14:56:51.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-01T16:20:18.442Z","etag":null,"topics":["vat-service"],"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/dmt-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-11-11T12:46:31.000Z","updated_at":"2025-11-01T14:56:04.000Z","dependencies_parsed_at":"2023-01-15T00:20:19.858Z","dependency_job_id":"7776edf1-076f-4c23-9d4e-3e2053cd147a","html_url":"https://github.com/dmt-software/eu-vat-validation","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":0.4444444444444444,"last_synced_commit":"d72d4fd58fbbdfc45baf58f1fa72cf06001716f3"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/dmt-software/eu-vat-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Feu-vat-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Feu-vat-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Feu-vat-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Feu-vat-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmt-software","download_url":"https://codeload.github.com/dmt-software/eu-vat-validation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Feu-vat-validation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["vat-service"],"created_at":"2026-01-18T13:50:56.092Z","updated_at":"2026-01-18T13:50:56.775Z","avatar_url":"https://github.com/dmt-software.png","language":"PHP","readme":"# VatValidation Client\n\n[![Build Status](https://travis-ci.org/dmt-software/eu-vat-validation.svg?branch=master)](https://travis-ci.org/dmt-software/eu-vat-validation)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dmt-software/eu-vat-validation/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/dmt-software/eu-vat-validation/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/dmt-software/eu-vat-validation/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/dmt-software/eu-vat-validation/?branch=master)\n\n\u003e This package contains a client to consume the EU VIES Vat soap-service. \n\u003e \n\u003e Please keep in mind that there is a [disclaimer](http://ec.europa.eu/taxation_customs/vies/disclaimer.html) for using \n\u003e the VAT service. This also applies to using this package. \n \n## Install\n`composer require dmt-software/eu-vat-validation`\n\n## Usage\n\n```php\n\u003c?php\n\nuse DMT\\CommandBus\\Validator\\ValidationException;\nuse DMT\\Soap\\Serializer\\SoapFaultException;\nuse DMT\\VatServiceEu\\ClientBuilder;\nuse DMT\\VatServiceEu\\Request\\CheckVat;\nuse DMT\\VatServiceEu\\Response\\CheckVatResponse;\nuse Psr\\Http\\Client\\ClientInterface;\nuse Psr\\Http\\Message\\RequestFactoryInterface;\n\ntry {\n    $request = new CheckVat();\n    $request-\u003esetCountryCode('NL');\n    $request-\u003esetVatNumber('804888644B01');\n\n    /** @var ClientInterface $client */\n    /** @var RequestFactoryInterface $requestFactory */\n    $client = ClientBuilder::create($client, $requestFactory)-\u003ebuild();\n    \n    /** @var CheckVatResponse $response */\n    $response = $client-\u003eexecute($request);\n    \n    if ($response-\u003eisValid()) {\n        // some business logic ...\n    }\n} catch (ValidationException $exception) {\n    // input was incorrect\n    foreach ($exception-\u003egetViolations() as $violation) {\n        print $violation-\u003egetMessage();\n    }\n} catch (SoapFaultException $exception) {\n    // service returned an error\n    print $exception-\u003egetMessage();\n}\n```\n\n## Further reading\n* [VIES VAT number validation](http://ec.europa.eu/taxation_customs/vies/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmt-software%2Feu-vat-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmt-software%2Feu-vat-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmt-software%2Feu-vat-validation/lists"}