PHPackages                             moonpie/think-ipblock - 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. moonpie/think-ipblock

ActiveLibrary[Security](/categories/security)

moonpie/think-ipblock
=====================

TP6 IP黑名单中间件服务

v1.0.0(4y ago)06apache2.0PHPPHP &gt;=7

Since Nov 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/JingxuanZhang/ipblock-for-tp6)[ Packagist](https://packagist.org/packages/moonpie/think-ipblock)[ RSS](/packages/moonpie-think-ipblock/feed)WikiDiscussions master Synced 3w ago

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

ipblock-for-tp6
===============

[](#ipblock-for-tp6)

ipblock service for thinkphp6.0

示例
--

[](#示例)

```
composer require moonpie/think-ipblock
```

之后,在项目配置目录config下会多出ipblock.php

根据配置文件注解,选择好自己要使用的IP定位器和白名单规则

声明需要中间件保护的路由信息

```
// route/app.php

Route::get('should protect by ip-block')
->middleware(\Moonpie\Tp6Tools\IpBlock\Middleware\IpBlock::class);
```

这样您的网站就只能在满足地理位置的条件下才能访问了

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1704d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6268d7fce91a192bdfd2a013aa9ac47d8e766cfcc0317b4bacf54fb1f0f09224?d=identicon)[xiakexingdege](/maintainers/xiakexingdege)

---

Top Contributors

[![JingxuanZhang](https://avatars.githubusercontent.com/u/8163629?v=4)](https://github.com/JingxuanZhang "JingxuanZhang (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/moonpie-think-ipblock/health.svg)

```
[![Health](https://phpackages.com/badges/moonpie-think-ipblock/health.svg)](https://phpackages.com/packages/moonpie-think-ipblock)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[zoujingli/think-library

Core library and common services for ThinkAdmin

8373.4k20](/packages/zoujingli-think-library)[ichynul/tpextmyadmin

thinkphp extension

141.6k](/packages/ichynul-tpextmyadmin)

PHPackages © 2026

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