PHPackages                             mageprashant/magento2-checkout-address-restriction - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. mageprashant/magento2-checkout-address-restriction

ActiveMagento2-module[Validation &amp; Sanitization](/categories/validation)

mageprashant/magento2-checkout-address-restriction
==================================================

Magento 2 Checkout Address Restriction

019PHP

Since Feb 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mageprashant/magento2-checkout-address-restriction)[ Packagist](https://packagist.org/packages/mageprashant/magento2-checkout-address-restriction)[ RSS](/packages/mageprashant-magento2-checkout-address-restriction/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Magento 2 Checkout Address Restriction Extension FREE
=====================================================

[](#magento-2-checkout-address-restriction-extension-free)

Magento 2 Add Custom Address Validation In Checkout.

Magento 2 has its own set of validations for the address fields in the checkout step. But sometimes you may want to add some custom validations in the different address fields. Some examples may be like limiting the character limit in the firstname and lastname of shipping and billing address. Use cases: Some ERP systems have certain limits on the length of fields that they can store. But Magento has no such limit on these fields. So while exporting the order data to the ERP you may face problems. Fortunately, we can handle this problem in Magento 2 with some effort. We will start by creating a new module for this functionality.

Installation Instruction
========================

[](#installation-instruction)

Step 1
------

[](#step-1)

### Install module via composer (recommend)

[](#install-module-via-composer-recommend)

Run the following command in Magento 2 root folder:

```
composer require mageprashant/magento2-checkout-address-restriction

```

### Install module manually

[](#install-module-manually)

- Download the extension
- Unzip the file
- Create a folder {Magento 2 root}/app/code/MagePrashant/Addressrestriction
- Copy the content from the unzip folder

#### Step 2 - Enable Module

[](#step-2---enable-module)

- php bin/magento module:enable MagePrashant\_Addressrestriction
- php bin/magento setup:upgrade

#### Step 3 - Configuration

[](#step-3---configuration)

Log into your Magento 2 Admin, then go to Stores &gt; Configuration &gt; MagePrashant &gt; Address Restrictions

Contribution
============

[](#contribution)

Want to contribute to this extension? The quickest way is to [open a pull request](https://help.github.com/articles/about-pull-requests/) on GitHub.

Support
=======

[](#support)

If you encounter any problems or bugs, please [open an issue](https://github.com/mageprashant/magento2-checkout-address-restriction/issues) on GitHub.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/30a7466f124f4765ba2ba62ba9b73d121c028e8cdc92044d184865a1519794b5?d=identicon)[mageprashant](/maintainers/mageprashant)

---

Top Contributors

[![mageprashant](https://avatars.githubusercontent.com/u/39878810?v=4)](https://github.com/mageprashant "mageprashant (5 commits)")

---

Tags

addressaddress-restrictionaddress-validationcheckoutcheckout-addressmagentomagento2magento2-free-modulesmodulerestrictionsvalidation

### Embed Badge

![Health badge](/badges/mageprashant-magento2-checkout-address-restriction/health.svg)

```
[![Health](https://phpackages.com/badges/mageprashant-magento2-checkout-address-restriction/health.svg)](https://phpackages.com/packages/mageprashant-magento2-checkout-address-restriction)
```

###  Alternatives

[toplan/laravel-sms

A mobile phone number validation solution based on laravel

83580.2k2](/packages/toplan-laravel-sms)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[hyperf/validation

hyperf validation

122.2M213](/packages/hyperf-validation)[udokmeci/yii2-phone-validator

Modern Yii2 Phone validator wrapper on top of PhoneNumberUtil library also used by Android devices

36227.5k1](/packages/udokmeci-yii2-phone-validator)[snowcap/vat-validation

EU VAT number validation

10112.3k](/packages/snowcap-vat-validation)

PHPackages © 2026

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