PHPackages                             gplcart/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. gplcart/filter

ActiveGplcart-module[Validation &amp; Sanitization](/categories/validation)

gplcart/filter
==============

Provides advanced HTML filters based on the HTML Purifier library

02PHP

Since Mar 10Pushed 8y agoCompare

[ Source](https://github.com/gplcart/filter)[ Packagist](https://packagist.org/packages/gplcart/filter)[ RSS](/packages/gplcart-filter/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0d3e246c433353116e9feac3deb149bdee0f0f89de0033414d0aad1339f0e269/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f66696c7465722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/filter/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e6b49892d3b486c09a5571dc658b036671885fd4e2b46418d34297fe2c92535d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67706c636172742f66696c7465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gplcart/filter/?branch=master)

Filter is a [GPL Cart](https://github.com/gplcart/gplcart) module that adds advanced HTML filters to protect your users against XSS vulnerabilities and automatically correct malformed HTML. Based on the [HTML Purifier](https://github.com/ezyang/htmlpurifier) library.

**Installation**

This module requires 3-d party library which should be downloaded separately. You have to use [Composer](https://getcomposer.org) to download all the dependencies.

1. From your web root directory: `composer require gplcart/filter`. If the module was downloaded and placed into `system/modules` manually, run `composer update` to make sure that all 3-d party files are presented in the `vendor` directory.
2. Go to `admin/module/list` end enable the module
3. Go to `admin/user/role` and grant permissions to edit filter settings
4. Assign user roles on `admin/module/settings/filter`

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad45895ef2d2867dc5294b7581948c79eef568001241d98eaf631bfe9fadeb63?d=identicon)[gplcart](/maintainers/gplcart)

---

Top Contributors

[![gplcart](https://avatars.githubusercontent.com/u/16158956?v=4)](https://github.com/gplcart "gplcart (29 commits)")

---

Tags

ecommercegplcartgplcart-modulehtmlpurifiershopping-cart

### Embed Badge

![Health badge](/badges/gplcart-filter/health.svg)

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

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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