PHPackages                             matusstafura/magento2-phone-validation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. matusstafura/magento2-phone-validation

ActiveMagento2-module[Payment Processing](/categories/payments)

matusstafura/magento2-phone-validation
======================================

Phone validation for Magento 2

v0.2.0(9mo ago)141MITPHPPHP &gt;=8.1

Since Jul 30Pushed 9mo agoCompare

[ Source](https://github.com/matusstafura/magento2-phone-validation)[ Packagist](https://packagist.org/packages/matusstafura/magento2-phone-validation)[ RSS](/packages/matusstafura-magento2-phone-validation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

📋 Description
-------------

[](#-description)

Problem: Magento 2 allows invalid characters in the phone number field:

  **Fresh Magento 2 installation:**
[![before validation](./docs/before.jpg)](./docs/before.jpg) **Validation with Module:**
[![after validation](./docs/after.jpg)](./docs/after.jpg) This module adds phone number validation to key Magento 2 forms such as:

- 🛒 Checkout (shipping &amp; billing address)
- 🧑 during Customer registration (todo)

---

📦 Installation (via Composer Path Repository)
---------------------------------------------

[](#-installation-via-composer-path-repository)

1. 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
```

2. Enable and compile module:

```
bin/magento module:enable MatusStafura_PhoneValidation
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
```

3. Enable / disable in Admin:

Stores &gt; Configuration &gt; Customers &gt; Customer Configuration &gt; Phone Validation

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are very welcome! If you'd like to improve the module, add features, fix bugs, or improve documentation:

1. Fork the repository
2. Create a new branch:

```
  git checkout -b feature/your-feature-name
```

3. Make your changes and commit with clear messages
4. Push to your fork:

```
  git push origin feature/your-feature-name
```

5. Open a pull request on GitHub

---

📃 License
---------

[](#-license)

MIT

---

Support
-------

[](#support)

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/matusstafura)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance57

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

282d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f56918987521c7c4b77e80e82275ef0ee2be4567bf65f207237f788524938f88?d=identicon)[matusstafura](/maintainers/matusstafura)

---

Top Contributors

[![matusstafura](https://avatars.githubusercontent.com/u/11353888?v=4)](https://github.com/matusstafura "matusstafura (6 commits)")

---

Tags

checkoutfreemagento2magento2-extensionmagento2-modulephonevalidationvalidationmagentophonemoduleformcheckoutmagento2customer

### Embed Badge

![Health badge](/badges/matusstafura-magento2-phone-validation/health.svg)

```
[![Health](https://phpackages.com/badges/matusstafura-magento2-phone-validation/health.svg)](https://phpackages.com/packages/matusstafura-magento2-phone-validation)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
