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

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ephenyxdigital/htmlpurifier
===========================

Standards compliant HTML filter written in PHP

4.3.1(3y ago)010LGPL-2.1-or-laterPHPPHP &gt;=5.2

Since Apr 26Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/ephenyxdigital/htmlpurifier)[ Packagist](https://packagist.org/packages/ephenyxdigital/htmlpurifier)[ Docs](http://htmlpurifier.org/)[ RSS](/packages/ephenyxdigital-htmlpurifier/feed)WikiDiscussions main Synced 1mo ago

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

HTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and aggressive parsing to ensure that not only are XSS attacks thwarted, but the resulting HTML is standards compliant.

HTML Purifier is oriented towards richly formatted documents from untrusted sources that require CSS and a full tag-set. This library can be configured to accept a more restrictive set of tags, but it won't be as efficient as more bare-bones parsers. It will, however, do the job right, which may be more important.

Notes:

- Fork from
- Some correction added for php 8.1 compatibility

HTML Purifier can be found on the web at:

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

[](#installation)

Package available on [Composer](https://packagist.org/packages/ephenyxshop/htmlpurifier).

If you're using Composer to manage dependencies, you can use

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Recently: every ~12 days

Total

6

Last Release

1134d ago

### Community

Maintainers

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

---

Top Contributors

[![ephenyxdigital](https://avatars.githubusercontent.com/u/55352817?v=4)](https://github.com/ephenyxdigital "ephenyxdigital (9 commits)")

---

Tags

html

### Embed Badge

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

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

###  Alternatives

[ezyang/htmlpurifier

Standards compliant HTML filter written in PHP

3.4k327.6M445](/packages/ezyang-htmlpurifier)[symfony/html-sanitizer

Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.

27932.2M63](/packages/symfony-html-sanitizer)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1052.9M11](/packages/xemlock-htmlpurifier-html5)[form-manager/form-manager

PHP-HTML form manager

16041.0k7](/packages/form-manager-form-manager)[aura/input

This package contains tools to describe and filter user inputs from an HTML form, including sub-forms/sub-fieldsets, fieldset collections, an interface for injecting custom filter systems, and CSRF protection. Note that this package does not include output functionality, although the "hints" provided by the Form object can be used with any presentation system to generate an HTML form.

6678.4k4](/packages/aura-input)

PHPackages © 2026

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