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 1w 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 22% 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

1658d 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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)

PHPackages © 2026

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