danielebarbaro/laravel-vat-eu-validator
A Laravel package for validating European Union VAT numbers via the VIES service. It ships a ready-made validation rule so you can verify VAT IDs in form requests and controllers with a single line, plus helpers for checking format and querying member-state data.
The package provides EU VAT validation via VIES, exposing Laravel validation rules, a facade, and configurable SOAP/REST clients. v3.5.0 adds AI guidelines for Laravel Boost and a CI drift test to keep those guidelines accurate; no runtime code changed. Architecturally, it fits any Laravel application needing VAT validation. Integration is straightforward via Composer, but depends on external VIES availability. Technical risk is moderate due to third‑party service reliability and rate limits; the new AI guidelines are low‑risk and aid developer onboarding. Key questions: What Laravel/PHP versions are supported? How are VIES timeouts and failures handled? Is caching of validation results supported? Does it comply with data protection requirements for VAT numbers?
Stack fit: Laravel 8+ likely, PHP 7.4/8.x. Migration path: composer require danielebarbaro/laravel-vat-eu-validator; publish config if needed. No breaking changes in v3.5.0, so upgrading from v3.4.x is safe. Compatibility: confirm Laravel version constraints; the package uses Laravel's validation and HTTP client components. Sequencing: install, configure VIES client (SOAP or REST), add validation rules to forms/APIs, optionally use facade for direct calls. For apps using Laravel Boost, run php artisan boost:install (or boost:update --discover) to ingest guidelines.
Maintenance: low; package is actively maintained, and the drift test reduces documentation staleness. Support: community-driven via GitHub issues. Scaling: limited by VIES rate limits and response times; consider caching or queuing for high volume. Failure modes: VIES downtime, network errors, invalid responses – ensure graceful degradation (e.g., fallback validation or manual review). Ramp-up: easy for Laravel developers; AI guidelines accelerate understanding for teams using Laravel Boost.
How can I help you explore Laravel packages today?