byte8/module-vat-validator-hyva
Composer 安装命令:
composer require byte8/module-vat-validator-hyva
包简介
Hyvä-themed live VAT validation indicator for Byte8_VatValidator (registration form + checkout).
README 文档
README
Adds a live, debounced VAT-validation indicator to Hyvä-themed registration
and address forms. Calls the standard
Byte8_VatValidator REST endpoint and shows a green / red badge directly
under the VAT input as the customer types.
Requirements
byte8/module-vat-validator≥ 0.1.0- A Hyvä-based theme (
hyva-themes/magento2-default-theme) - No additional JS dependencies — Alpine + Tailwind only, both ship with Hyvä
Core module
This is a storefront companion — it does nothing on its own. Install the core validator first: byte8/module-vat-validator. That module provides the EU VIES / UK HMRC / Swiss UID validation, REST endpoints, customer-group mapping, audit log, and CLI. This module just wires a live indicator into Hyvä forms.
composer require byte8/module-vat-validator
Install
composer require byte8/module-vat-validator-hyva bin/magento module:enable Byte8_VatValidatorHyva bin/magento setup:upgrade bin/magento cache:flush
What it does
| Page | Behaviour |
|---|---|
customer/account/create |
Watches the taxvat field; shows live indicator |
customer/address/form |
Watches the vat_id + country_id fields; shows live indicator |
Behaviour:
- 600 ms debounce — won't spam the REST endpoint while the user types
- Recognises both 2-letter ISO prefixes (
DE…,GB…) and the Swiss 3-letterCHE…prefix - Falls back to the country dropdown's value if no prefix is typed
- Hides itself silently on
unavailable/skippedoutcomes — never shows a misleading red badge when VIES is just slow
Customising
Override
Byte8_VatValidatorHyva::vat-indicator.phtml in your theme. The whole
component is a single self-contained Alpine x-data block — drop in your
own copy / icons / Tailwind classes.
Hyvä Checkout (Magewire)
Not yet shipped. The standard Hyvä Checkout uses Magewire components which need a server-side wire-class. Open an issue if you need it and we'll prioritise.
License
MIT
byte8/module-vat-validator-hyva 适用场景与选型建议
byte8/module-vat-validator-hyva 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 byte8/module-vat-validator-hyva 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 byte8/module-vat-validator-hyva 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 38
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-28