PHPackages                             yireo/magento2-salesblock2-by-geo - 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. [Security](/categories/security)
4. /
5. yireo/magento2-salesblock2-by-geo

ActiveMagento2-module[Security](/categories/security)

yireo/magento2-salesblock2-by-geo
=================================

Block transactions based on geo matching

2.1.2(2y ago)11.3k2[1 PRs](https://github.com/yireo/Yireo_SalesBlock2ByGeo/pulls)OSL-3.0PHP

Since Jul 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yireo/Yireo_SalesBlock2ByGeo)[ Packagist](https://packagist.org/packages/yireo/magento2-salesblock2-by-geo)[ Docs](https://www.yireo.com/software/magento-extensions/salesblock2)[ Fund](https://www.paypal.me/yireo)[ GitHub Sponsors](https://github.com/yireo)[ RSS](/packages/yireo-magento2-salesblock2-by-geo/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

Yireo SalesBlock2ByGeo for Magento 2
====================================

[](#yireo-salesblock2bygeo-for-magento-2)

This module is a helper-module for the [Yireo\_SalesBlock2](https://www.yireo.com/software/magento-extensions/salesblock2) extension, that allows you to block orders from being placed, based on specific rules defined in the Magento Admin Panel.

This specific module allows you to match by a specific geo location.

### Installation

[](#installation)

To install this module, use the following commands. First, install this module using composer. Note that this step will fail if the `Yireo_SalesBlock2` is not installed yet.

```
composer require yireo/magento2-salesblock2-by-geo

```

Once this module is installed via composer, you can enable it:

```
bin/magento module:enable Yireo_SalesBlock2ByGeo
bin/magento setup:upgrade

```

There are no further steps to take. The `Yireo_SalesBlock2` module automatically picks up on things.

### Usage

[](#usage)

When creating a rule within the SalesBlock extension, this submodule adds a new geolocation rule to block sales by geolocation. Within the **Match** field, you can one or more of the following values:

- A two-letter identifier for a continent ([ref](https://www.php.net/manual/en/function.geoip-continent-code-by-name.php))
- A two-letter identifier for a country ([ref](https://dev.maxmind.com/geoip/legacy/codes/iso3166/))
- A three-letter identifier for a country ([ref](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3))

Multiple entries are to be separated by commas.

### GeoIP support

[](#geoip-support)

You either need to install GeoIP support into your PHP installation (usually by installing a PHP extension `ext-geoip`) or you need to add GeoIP databases on your system and configure this extension to use them. For installing the PHP extension, refer to your PHP installation. Please note that the GeoIP extension might no longer be available for your PHP version.

As for the Geo databases, register for an account with Maxmind and download the database (`*.mmdb`) for either cities or countries or both. Upload them some where on your server and configure this extension in the Magento Admin Panel to point to that path.

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~190 days

Total

6

Last Release

862d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (21 commits)")

---

Tags

magento2-modulemagentocomposer-installer

### Embed Badge

![Health badge](/badges/yireo-magento2-salesblock2-by-geo/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-salesblock2-by-geo/health.svg)](https://phpackages.com/packages/yireo-magento2-salesblock2-by-geo)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[mollie/magento2

Mollie Payment Module for Magento 2

1142.0M17](/packages/mollie-magento2)[yireo/magento2-emailtester2

Preview transactional emails and test send them in your backend

34441.8k](/packages/yireo-magento2-emailtester2)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1015.1k29](/packages/loki-magento2-components)[yireo/magento2-googletagmanager2

Add Google Tag Manager to Magento

1681.0M5](/packages/yireo-magento2-googletagmanager2)[buckaroo/magento2

Buckaroo Magento 2 extension

32426.0k8](/packages/buckaroo-magento2)

PHPackages © 2026

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