PHPackages                             milqmedia/htmlpurifier - 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. milqmedia/htmlpurifier

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

milqmedia/htmlpurifier
======================

Zend Framework 3 module that provides complete integration of HTMLPurifier library

1.2(9y ago)05.1kLGPL v 2.1+PHPPHP &gt;=7.0

Since Nov 6Pushed 9y ago4 watchersCompare

[ Source](https://github.com/milqmedia/mq-htmlpurifier)[ Packagist](https://packagist.org/packages/milqmedia/htmlpurifier)[ Docs](https://github.com/milqmedia/mq-htmlpurifier)[ RSS](/packages/milqmedia-htmlpurifier/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (8)Used By (0)

MQHtmlPurifier
==============

[](#mqhtmlpurifier)

[![Build Status](https://camo.githubusercontent.com/f48c91ceb5a0b5fadc938912d842028d05b470fd33745590c8b69c4c5fc639d2/68747470733a2f2f7472617669732d63692e6f72672f6d696c716d656469612f6d712d68746d6c70757269666965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/milqmedia/mq-htmlpurifier)

MQHtmlPurifier is a module that integrates the [HTMLPurifier](http://htmlpurifier.org/) filter library with [Zend Framework 2](http://framework.zend.com).

Installation
------------

[](#installation)

1. Add `"repositories": [ { "type": "vcs", "url": "https://github.com/milqmedia/MQHtmlPurifier" }]` to your `composer.json` file.
2. Add `"milqmedia/mq-htmlpurifier": "dev-master"` to your `composer.json` file and run `php composer.phar update`.
3. Add `MQHtmlPurifier` to your `config/application.config.php` file under the `modules` key.

Configuration
-------------

[](#configuration)

MQHtmlPurifier has sane defaults out of the box but offers optional configuration via the `mqhtmlpurifier` configuration key.

```
`config` - passed directly to the HTMLPurifier class.
         - Added `Cache.SerializerPath` and set the default cache folder to data/cache/htmlpurifier
           Active by default.

```

Fork
----

[](#fork)

This module is a fork of [DevmonkHtmlPurifier](https://github.com/DevMonkCom/devmonk-htmlpurifier) by DevMonkCom. Updated, changed and enhanced by Milq Media.

\#testing

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~61 days

Total

7

Last Release

3525d ago

Major Versions

0.1.4 → 1.0.52016-11-07

PHP version history (2 changes)0.1PHP &gt;=5.3.3

1.0.5PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/197600?v=4)[Yo-han](/maintainers/yo-han)[@yo-han](https://github.com/yo-han)

---

Tags

securityhtmlfiltermodulehtmlpurifierxsszf2malicious

### Embed Badge

![Health badge](/badges/milqmedia-htmlpurifier/health.svg)

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

###  Alternatives

[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1053.2M18](/packages/xemlock-htmlpurifier-html5)[htmlawed/htmlawed

Official htmLawed PHP library for HTML filtering

481.2M15](/packages/htmlawed-htmlawed)[ircmaxell/filterus

A library for filtering variables in PHP

44713.4k7](/packages/ircmaxell-filterus)[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.

1263.6k1](/packages/soosyze-kses)[stolz/laravel-html-tidy

HTML Tidy middleware for Laravel

268.7k](/packages/stolz-laravel-html-tidy)[lincanbin/white-html-filter

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

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

PHPackages © 2026

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