PHPackages                             kyo/tp6-xss-filter - 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. [Search &amp; Filtering](/categories/search)
4. /
5. kyo/tp6-xss-filter

ActiveLibrary[Search &amp; Filtering](/categories/search)

kyo/tp6-xss-filter
==================

xss过滤器 防xss攻击

1.0.5(3y ago)09MITPHPPHP &gt;=7.1

Since Jul 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hzb-kyo/tp6-xss-filter)[ Packagist](https://packagist.org/packages/kyo/tp6-xss-filter)[ RSS](/packages/kyo-tp6-xss-filter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

tp6-xss-filter
==============

[](#tp6-xss-filter)

#### 介绍

[](#介绍)

tp6-xss-filter thinkphp6的xss过滤器

#### 安装教程

[](#安装教程)

composer require kyo/tp6-xss-filter

#### 使用说明

[](#使用说明)

打开app目录下的middleware.php 加上\\kyo\\XssFilter::class

#### 作者

[](#作者)

kyo

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

2

Last Release

1397d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a695ddb938fd8492f613a06e47d5e9f5c8803d440a43d36709c34e0d6ef5932?d=identicon)[hzb-kyo](/maintainers/hzb-kyo)

---

Top Contributors

[![hzb-kyo](https://avatars.githubusercontent.com/u/109065369?v=4)](https://github.com/hzb-kyo "hzb-kyo (11 commits)")

---

Tags

filterxssxss-filterxssfilterkyo

### Embed Badge

![Health badge](/badges/kyo-tp6-xss-filter/health.svg)

```
[![Health](https://phpackages.com/badges/kyo-tp6-xss-filter/health.svg)](https://phpackages.com/packages/kyo-tp6-xss-filter)
```

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9428.0M148](/packages/laminas-laminas-filter)[htmlawed/htmlawed

Official htmLawed PHP library for HTML filtering

401.1M9](/packages/htmlawed-htmlawed)[soosyze/kses

An HTML/XHTML filter written in PHP. Checks on attribute values. Can be used to avoid Cross-Site Scripting (XSS), Buffer Overflows and Denial of Service attacks, among other things.

1258.5k1](/packages/soosyze-kses)[lincanbin/white-html-filter

A lightweight php-based HTML tag and attribute whitelist filter.

1215.1k1](/packages/lincanbin-white-html-filter)

PHPackages © 2026

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