PHPackages                             mageplaza/module-geoip - 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. mageplaza/module-geoip

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

mageplaza/module-geoip
======================

Magento 2 GEO IP Extension

4.0.3(9mo ago)19335.9k—0.5%8[1 PRs](https://github.com/mageplaza/magento-2-geoip/pulls)1proprietaryPHP

Since Dec 5Pushed 9mo ago7 watchersCompare

[ Source](https://github.com/mageplaza/magento-2-geoip)[ Packagist](https://packagist.org/packages/mageplaza/module-geoip)[ RSS](/packages/mageplaza-module-geoip/feed)WikiDiscussions 2.4 Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (18)Used By (1)

Magento 2 GeoIP Extension
=========================

[](#magento-2-geoip-extension)

GeoIP Library for Magento 2 provides stores with GeoIP Database, which supports to detect the current geolocation of customer using his IP address.

- Discover customers' location quickly
- Fully compatible with [Mageplaza Store Switcher](https://www.mageplaza.com/magento-2-store-switcher/)

1. GeoIp Documentation
----------------------

[](#1-geoip-documentation)

- [Installation guide](https://www.mageplaza.com/install-magento-2-extension/)
- [User guide](https://docs.mageplaza.com/geoip-library/index.html)
- [Introduction page](http://www.mageplaza.com/magento-2-geoip/)
- [Contribute on Github](https://github.com/mageplaza/magento-2-geoip-library)
- [Get Support](https://github.com/mageplaza/magento-2-geoip-library/issues)

2. FAQs
-------

[](#2-faqs)

**Q: I got error: Mageplaza\_Core has been already defined**

A: Read solution [here](https://github.com/mageplaza/module-core/issues/3)

**Q: What is the library used for?**

A: GeoIP library contains the GeoLite 2 geolocation database. Based on this, you can take advantage to build up other advanced functions such as auto-detect customer’ address to [suggest stores](https://www.mageplaza.com/magento-2-store-locator-extension/), s[witch appropriate language storeview](https://www.mageplaza.com/magento-2-store-switcher/).

3. How to install GeoIP extension for Magento 2
-----------------------------------------------

[](#3-how-to-install-geoip-extension-for-magento-2)

Install via composer (recommend)

Run the following command in Magento 2 root folder:

```
composer require mageplaza/module-geoip
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

```

4. Highlight features
---------------------

[](#4-highlight-features)

The module is built based on the GeoLite 2 database, also the IP geolocation database. The GeoLite2 Country, City, and ASN databases are updated frequently.

In this free module, the store admin can download the library to get the Geolocation database. The database is the basement to power other advanced location functions (store switching, store locating)

With 2 simple steps, you can download the geodatabase library and enable the module to activate the library and come into usage.

[![Highlight features](https://camo.githubusercontent.com/b38c2efbcd7d9decc444808548311db6b93c2d1c26e8216e1cd3c0f4d2c1525e/68747470733a2f2f692e696d6775722e636f6d2f4b30786f5841562e706e67)](https://camo.githubusercontent.com/b38c2efbcd7d9decc444808548311db6b93c2d1c26e8216e1cd3c0f4d2c1525e/68747470733a2f2f692e696d6775722e636f6d2f4b30786f5841562e706e67)

GeoIP library is used to develop [Magento 2 Store Switcher](https://www.mageplaza.com/magento-2-store-switcher/), [Magento 2 Store Locator](https://www.mageplaza.com/magento-2-store-locator-extension/) and [Magento 2 Store Pickup](https://www.mageplaza.com/magento-2-store-pickup-extension/) by Mageplaza

5. How to configure the GeoIP module
------------------------------------

[](#5-how-to-configure-the-geoip-module)

From the `Admin Panel`, go to `Stores > Configuration > Mageplaza Extension > Geo IP`, choose `Geo IP Configuration` section.

[![Imgur](https://camo.githubusercontent.com/e0fc2743be65049ae1e1aef6a1f4b513414e89d358e7c7d02c6d60fc56908a7c/68747470733a2f2f692e696d6775722e636f6d2f7a3575766150302e706e67)](https://camo.githubusercontent.com/e0fc2743be65049ae1e1aef6a1f4b513414e89d358e7c7d02c6d60fc56908a7c/68747470733a2f2f692e696d6775722e636f6d2f7a3575766150302e706e67)

- **Enable Geo IP**, please select `Yes` to turn on GeoIP module function which helps you define customers' countries then direct them to the related store views.
- **Download Library button**: Click `Download Library` button to download Geo IP library before enabling it.

**People also search:**

- geoip magento 2
- magento 2 geo ip
- magento 2 geoip extension
- magento 2 geoip redirect
- magento 2 geoip store switcher
- magento 2 geolocation
- magento 2 geoip currency switcher

**Other free Magento 2 extensions on Github**

- [Magento 2 SEO Suite](https://github.com/mageplaza/magento-2-seo)
- [Magento 2 google maps](https://github.com/mageplaza/magento-2-google-maps)
- [Magento 2 Delete Orders](https://github.com/mageplaza/magento-2-delete-orders)
- [Magento 2 GDPR](https://github.com/mageplaza/magento-2-gdpr)
- [Magento 2 Backend Reindex](https://github.com/mageplaza/magento-2-backend-reindex)
- [Magento 2 Social login free](https://github.com/mageplaza/magento-2-social-login)
- [Magento 2 security](https://github.com/mageplaza/magento-2-security)
- [Magento 2 Blog](https://github.com/mageplaza/magento-2-blog)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance56

Moderate activity, may be stable

Popularity45

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~173 days

Recently: every ~360 days

Total

15

Last Release

295d ago

Major Versions

1.0.6 → 4.0.02020-10-01

1.0.7 → 2.3.x-dev2021-08-19

1.0.8 → 4.0.22025-04-17

2.4.x-dev → 4.0.32025-07-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2810172?v=4)[Sam Ng](/maintainers/imsamthomas)[@imsamthomas](https://github.com/imsamthomas)

![](https://www.gravatar.com/avatar/791d20a969b428c77a439388be23f94f3ce34d9cbc8ecd09bfccdb7e41b5d7ca?d=identicon)[haitv282](/maintainers/haitv282)

---

Top Contributors

[![brianmageplaza](https://avatars.githubusercontent.com/u/7621931?v=4)](https://github.com/brianmageplaza "brianmageplaza (20 commits)")[![ninhkx](https://avatars.githubusercontent.com/u/35290411?v=4)](https://github.com/ninhkx "ninhkx (8 commits)")[![Rainy234](https://avatars.githubusercontent.com/u/42835440?v=4)](https://github.com/Rainy234 "Rainy234 (5 commits)")[![Tuvpt](https://avatars.githubusercontent.com/u/32826247?v=4)](https://github.com/Tuvpt "Tuvpt (4 commits)")[![imsamthomas](https://avatars.githubusercontent.com/u/2810172?v=4)](https://github.com/imsamthomas "imsamthomas (4 commits)")[![DHT-Uri](https://avatars.githubusercontent.com/u/54830040?v=4)](https://github.com/DHT-Uri "DHT-Uri (3 commits)")[![chuccv](https://avatars.githubusercontent.com/u/72536167?v=4)](https://github.com/chuccv "chuccv (2 commits)")[![bdtrungit](https://avatars.githubusercontent.com/u/44560229?v=4)](https://github.com/bdtrungit "bdtrungit (1 commits)")[![LoganPham](https://avatars.githubusercontent.com/u/177497893?v=4)](https://github.com/LoganPham "LoganPham (1 commits)")[![haonv01](https://avatars.githubusercontent.com/u/34636961?v=4)](https://github.com/haonv01 "haonv01 (1 commits)")

### Embed Badge

![Health badge](/badges/mageplaza-module-geoip/health.svg)

```
[![Health](https://phpackages.com/badges/mageplaza-module-geoip/health.svg)](https://phpackages.com/packages/mageplaza-module-geoip)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[mageplaza/magento-2-blog-extension

Magento 2 Blog extension

123708.2k5](/packages/mageplaza-magento-2-blog-extension)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)[mageplaza/magento-2-seo-extension

Magento 2 SEO extension

138506.6k2](/packages/mageplaza-magento-2-seo-extension)[gpslab/geoip2

A Symfony Bundle for the Maxmind GeoIP2 API

541.5M3](/packages/gpslab-geoip2)

PHPackages © 2026

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