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

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

masterjoa/htmlpurifier-standalone
=================================

Standalone distribution of HTMLPurifier

v4.8.0(9y ago)14801[1 issues](https://github.com/joachimchauvet/HTMLPurifier-standalone/issues)1LGPLPHPPHP &gt;=5.2

Since Apr 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/joachimchauvet/HTMLPurifier-standalone)[ Packagist](https://packagist.org/packages/masterjoa/htmlpurifier-standalone)[ Docs](http://htmlpurifier.org/)[ RSS](/packages/masterjoa-htmlpurifier-standalone/feed)WikiDiscussions master Synced 4w ago

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

HTML Purifier
=============

[](#html-purifier)

HTML Purifier is an HTML filtering solution that uses a unique combination of robust whitelists and agressive 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.

HTML Purifier can be found on the web at:

Standalone version
------------------

[](#standalone-version)

For those of you who balk at the possibility of a 100+ includes, we also offer a conveniently packaged single-file version of HTML Purifier. Well, not really, since HTML Purifier does require some auxiliary files in order to work (but they are neatly tucked away in a folder named standalone). Include HTMLPurifier.standalone.php and be done with it!

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

[](#installation)

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

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

```
$ composer require "masterjoa/htmlpurifier-standalone": "dev-master"

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.1% 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 ~286 days

Total

2

Last Release

3435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60e2a7b36c775c9dea6915aa075edc87477e9385b7421ff5108ab3b35ae58aad?d=identicon)[Masterjoa](/maintainers/Masterjoa)

---

Top Contributors

[![ezyang](https://avatars.githubusercontent.com/u/13564?v=4)](https://github.com/ezyang "ezyang (171 commits)")[![joachimchauvet](https://avatars.githubusercontent.com/u/13382894?v=4)](https://github.com/joachimchauvet "joachimchauvet (5 commits)")[![Synchro](https://avatars.githubusercontent.com/u/81561?v=4)](https://github.com/Synchro "Synchro (3 commits)")[![jdufresne](https://avatars.githubusercontent.com/u/347634?v=4)](https://github.com/jdufresne "jdufresne (1 commits)")[![mtibben](https://avatars.githubusercontent.com/u/980499?v=4)](https://github.com/mtibben "mtibben (1 commits)")[![nalysius](https://avatars.githubusercontent.com/u/7780244?v=4)](https://github.com/nalysius "nalysius (1 commits)")[![ngnpope](https://avatars.githubusercontent.com/u/2855582?v=4)](https://github.com/ngnpope "ngnpope (1 commits)")[![openbrian](https://avatars.githubusercontent.com/u/2524550?v=4)](https://github.com/openbrian "openbrian (1 commits)")[![richp10](https://avatars.githubusercontent.com/u/3863621?v=4)](https://github.com/richp10 "richp10 (1 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (1 commits)")[![robo47](https://avatars.githubusercontent.com/u/110477?v=4)](https://github.com/robo47 "robo47 (1 commits)")[![skodak](https://avatars.githubusercontent.com/u/241453?v=4)](https://github.com/skodak "skodak (1 commits)")[![sylfabre](https://avatars.githubusercontent.com/u/3177556?v=4)](https://github.com/sylfabre "sylfabre (1 commits)")[![tmuras](https://avatars.githubusercontent.com/u/695281?v=4)](https://github.com/tmuras "tmuras (1 commits)")[![bfroehle](https://avatars.githubusercontent.com/u/204333?v=4)](https://github.com/bfroehle "bfroehle (1 commits)")[![tyx](https://avatars.githubusercontent.com/u/245494?v=4)](https://github.com/tyx "tyx (1 commits)")[![Darhazer](https://avatars.githubusercontent.com/u/679778?v=4)](https://github.com/Darhazer "Darhazer (1 commits)")[![dgm](https://avatars.githubusercontent.com/u/52503?v=4)](https://github.com/dgm "dgm (1 commits)")

---

Tags

html

### Embed Badge

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

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

###  Alternatives

[ezyang/htmlpurifier

Standards compliant HTML filter written in PHP

3.3k343.7M565](/packages/ezyang-htmlpurifier)[symfony/html-sanitizer

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

27938.2M117](/packages/symfony-html-sanitizer)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5386.2M30](/packages/stevebauman-purify)[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1063.1M17](/packages/xemlock-htmlpurifier-html5)[form-manager/form-manager

PHP-HTML form manager

15542.1k7](/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.

6480.1k5](/packages/aura-input)

PHPackages © 2026

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