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 1mo 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

Maturity23

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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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