PHPackages                             betagento/magento2-geoip-detection - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. betagento/magento2-geoip-detection

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

betagento/magento2-geoip-detection
==================================

Magento2 Extension - GEO Detection from Visitor IP

021PHP

Since Dec 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/trunglv/magento2-geoip-detection)[ Packagist](https://packagist.org/packages/betagento/magento2-geoip-detection)[ RSS](/packages/betagento-magento2-geoip-detection/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Magento2 Extension - GEO Detection From Visitor IP
==================================================

[](#magento2-extension---geo-detection-from-visitor-ip)

Overview
--------

[](#overview)

Magento2 Online Store can use this extension to detect a country, postcode from a visitor IP via other online services like MindMax, Íptack and be extendable for other GeoIp services.

Installation:
-------------

[](#installation)

```
composer require betagento/magento2-geoip-detection:dev-main

```

`This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.`

### To use MaxMind GeoIp

[](#to-use-maxmind-geoip)

```
composer require require geoip2/geoip2:~2.0

```

```
composer require tronovav/geoip2-update

```

How to use it:
--------------

[](#how-to-use-it)

***Go to Store &gt;&gt; Configuration &gt;&gt; Betagento &gt;&gt; GEOIP Detection:***

### GEO Detection Section

[](#geo-detection-section)

[![image](https://user-images.githubusercontent.com/820411/145790027-e8285353-71ff-4580-8808-238fd444a43b.png)](https://user-images.githubusercontent.com/820411/145790027-e8285353-71ff-4580-8808-238fd444a43b.png)

- Enabled : Enable this extension
- Api Service : Maxmind or IP Stack
- Debug Enabled: Enable debug

### Maxmind Configuration

[](#maxmind-configuration)

[![image](https://user-images.githubusercontent.com/820411/145790155-5ebcebf4-11d6-4820-b5d8-8fdccedd6a60.png)](https://user-images.githubusercontent.com/820411/145790155-5ebcebf4-11d6-4820-b5d8-8fdccedd6a60.png)

- Licence Key: Licence Key From
- Technical Solution

### Automatically Store Switch

[](#automatically-store-switch)

[![image](https://user-images.githubusercontent.com/820411/145790745-d4029f94-027c-4cb4-bef4-859931915c2c.png)](https://user-images.githubusercontent.com/820411/145790745-d4029f94-027c-4cb4-bef4-859931915c2c.png)

- Enabled : Enable this feature
- Default Country (Please use website scope) : We will switch to this current website (of Magento) if a such selected country is detected
- Default store : It will redirect to a default store if a country defined above it is not matched.

### Command Line

[](#command-line)

#### Download Maxmind Database

[](#download-maxmind-database)

```
bin/magento betagento:geoip_detection:maxmind_download

```

### Testing

[](#testing)

```
bin/magento betagento:geoip_detection:test --ip 12.13.14.15

```

Code Standard
-------------

[](#code-standard)

PHPSTAN - Level 6

[![image](https://user-images.githubusercontent.com/820411/145785069-6d74d9f0-d50c-45f5-a9ff-03ca4d9a806d.png)](https://user-images.githubusercontent.com/820411/145785069-6d74d9f0-d50c-45f5-a9ff-03ca4d9a806d.png)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity27

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/15e9d0c7c6322100e7f10b8efb4ed2a28193b52d7ba32d96033635838c7c09f0?d=identicon)[trunglv](/maintainers/trunglv)

---

Top Contributors

[![trunglv](https://avatars.githubusercontent.com/u/820411?v=4)](https://github.com/trunglv "trunglv (26 commits)")

### Embed Badge

![Health badge](/badges/betagento-magento2-geoip-detection/health.svg)

```
[![Health](https://phpackages.com/badges/betagento-magento2-geoip-detection/health.svg)](https://phpackages.com/packages/betagento-magento2-geoip-detection)
```

###  Alternatives

[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[stuttter/wp-multi-network

Provides a Network Management Interface for global administrators in WordPress Multisite installations.

23324.1k1](/packages/stuttter-wp-multi-network)[xandros15/slim-pagination

simple pagination for slim3

118.0k](/packages/xandros15-slim-pagination)[element119/module-custom-admin-logo

A Magento 2 module that allows admins to set the logo for their admin panel and login screen.

132.1k](/packages/element119-module-custom-admin-logo)

PHPackages © 2026

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