PHPackages                             mpge/php-country-block - 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. mpge/php-country-block

ActiveLibrary

mpge/php-country-block
======================

Block or allow web traffic by country, with pluggable IP geolocation providers.

v2.0.0(today)90MITPHP ^8.2

Since Aug 9Compare

[ Source](https://github.com/mpge/PHP-Country-Block)[ Packagist](https://packagist.org/packages/mpge/php-country-block)[ Docs](https://github.com/mpge/PHP-Country-Block)[ RSS](/packages/mpge-php-country-block/feed)WikiDiscussions Synced today

READMEChangelogDependencies (6)Versions (3)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/mpge/PHP-Country-Block).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f1e8418623e51236a1fd63d1da722d2b15a8a8b067b10d520580fd3e9a6e509?d=identicon)[MatthewGross](/maintainers/MatthewGross)

---

Tags

geoipgeolocationmaxmindcloudflareblockcountryip2locationallowlistgeoblocking

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mpge-php-country-block/health.svg)

```
[![Health](https://phpackages.com/badges/mpge-php-country-block/health.svg)](https://phpackages.com/packages/mpge-php-country-block)
```

###  Alternatives

[geoip2/geoip2

MaxMind GeoIP PHP API

2.5k94.5M396](/packages/geoip2-geoip2)[maxmind-db/reader

MaxMind DB Reader API

704110.5M75](/packages/maxmind-db-reader)[moonshine/moonshine

Laravel administration panel

1.3k268.2k87](/packages/moonshine-moonshine)[nnjeim/world

Laravel countries, states, cities, currencies, languages and IP geolocation

984520.1k8](/packages/nnjeim-world)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[mimmi20/browser-detector

Library to detect Browsers and Devices

49158.4k5](/packages/mimmi20-browser-detector)

PHPackages © 2026

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