PHPackages                             modulargaming/purifier - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. modulargaming/purifier

ActiveKohana-module[Utility &amp; Helpers](/categories/utility)

modulargaming/purifier
======================

HTMLPurifier module for Kohana

v1.0.0(12y ago)01551PHPPHP &gt;=5.3.3

Since Jul 28Pushed 12y ago4 watchersCompare

[ Source](https://github.com/modulargaming/purifier)[ Packagist](https://packagist.org/packages/modulargaming/purifier)[ Docs](https://github.com/modulargaming/purifier)[ RSS](/packages/modulargaming-purifier/feed)WikiDiscussions 3.3/master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Purifier for Kohana
===================

[](#purifier-for-kohana)

Overloads [Security::xss\_clean](http://kohanaframework.org/guide/api/Security#xss_clean) to provide secure XSS filtering using [HTML Purifier](http://htmlpurifier.org/).

Installing Purifier
===================

[](#installing-purifier)

### Using Git

[](#using-git)

If your application is in a Git repository, you can simply add this repository as a submodule:

```
git submodule add git://github.com/shadowhand/purifier.git modules/purifier
git submodule update --init --recursive

```

If you want to use a specific version, you can check out the tag of that version:

```
cd modules/purifier
git checkout v0.1.0
cd -
git add modules/purifier

```

Always remember to commit changes you make to submodules!

```
git commit -m 'Added Purifier module'

```

To install HTML Purifier, you will need to go into the purifier module directory and download it:

```
cd modules/purifier
git submodule update --init --recursive

```

*HTML Purifier is enabled as submodule of the Purifier module. Submodules of submodules are only automatically initialized if you use the --recursive flag*

### FTP or Plain Files

[](#ftp-or-plain-files)

For an untracked repository, you can [download](http://github.com/shadowhand/purifier/archives/master) the repository and install it to `MODPATH/purifier`. To download a specific version, select the tag on Github before clicking the download link.

You will also need to [download HTML Purifier](http://htmlpurifier.org/download) and install the entire "htmlpurifier" directory to `MODPATH/purifier/vendor/htmlpurifier`.

After Installation
------------------

[](#after-installation)

After HTML Purifier is installed, you will need to make the `library/HTMLPurifier/DefinitionCache/Serializer` in `MODPATH/purifier/vendor/htmlpurifier` writable by the web server.

Using Purifier
==============

[](#using-purifier)

To use Purifier, just call [Security::xss\_clean](http://kohanaframework.org/guide/api/Security#xss_clean) as you normally would. HTML Purifier will be used instead of the default "Bitflux" filter.

Advanced Usage
--------------

[](#advanced-usage)

If you want to access HTMLPurifier directly:

```
$html = Security::htmlpurifier();

```

You can configure the [HTMLPurifier settings](http://htmlpurifier.org/live/configdoc/plain.html) by creating `APPPATH/config/purifier.php`:

```
return array(
    'settings' => array(
        ... => ...
    ),
);

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Unknown

Total

1

Last Release

4668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d8255c65eec7e6cf302650813a90df65b599e35041077f9805185ab2e355a65?d=identicon)[modulargaming](/maintainers/modulargaming)

---

Top Contributors

[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (10 commits)")[![Hinton](https://avatars.githubusercontent.com/u/137855?v=4)](https://github.com/Hinton "Hinton (4 commits)")[![ryross](https://avatars.githubusercontent.com/u/152982?v=4)](https://github.com/ryross "ryross (1 commits)")[![vitch](https://avatars.githubusercontent.com/u/9898?v=4)](https://github.com/vitch "vitch (1 commits)")

---

Tags

kohanahtmlpurifier

### Embed Badge

![Health badge](/badges/modulargaming-purifier/health.svg)

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

###  Alternatives

[bmidget/kohana-formo

Formo is a form module for Kohana 3 that lets you work with forms as objects

1328.4k](/packages/bmidget-kohana-formo)

PHPackages © 2026

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