matusstafura/magento2-phone-validation
最新稳定版本:v0.2.0
Composer 安装命令:
composer require matusstafura/magento2-phone-validation
包简介
Phone validation for Magento 2
README 文档
README
Problem: Magento 2 allows invalid characters in the phone number field:
Fresh Magento 2 installation:![]() |
Validation with Module:![]() |
This module adds phone number validation to key Magento 2 forms such as:
- 🛒 Checkout (shipping & billing address)
- 🧑 during Customer registration (todo)
📦 Installation (via Composer Path Repository)
- Install via composer(recommended)
composer require matusstafura/magento2-phone-validation
or clone this module to app/code/MatusStafura/PhoneValidation:
git clone git@github.com:matusstafura/magento2-phone-validation.git
- Enable and compile module:
bin/magento module:enable MatusStafura_PhoneValidation bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
- Enable / disable in Admin:
Stores > Configuration > Customers > Customer Configuration > Phone Validation
🤝 Contributing
Contributions are very welcome! If you'd like to improve the module, add features, fix bugs, or improve documentation:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit with clear messages
- Push to your fork:
git push origin feature/your-feature-name
- Open a pull request on GitHub
📃 License
MIT
Support
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-30

