# mewebstudio/Purifier

HTMLPurifier for Laravel 5+

Repository: https://github.com/mewebstudio/Purifier
Canonical: https://ross.abutalabs.com/products/purifier
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, php, htmlpurifier, cleaning
Last push: 2026-06-08T01:43:20+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 47, longevity 100
- inputs: {"age_days": 4912, "days_push": 87, "days_rel": 140, "gap_med": 415, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1979, forks 241 (observed 2026-08-28T04:06:01.636267+00:00)

## What it is
A Laravel service provider that wraps the HTMLPurifier library for sanitizing HTML input. It provides a simple clean() helper and Purifier facade to strip malicious code like XSS while keeping HTML standards-compliant.

## Use cases
- sanitize user-submitted HTML in Laravel
- prevent XSS from rich text editor input
- clean HTML before storing in database
- whitelist allowed HTML tags in user content
- purify WYSIWYG editor output in Laravel apps

## When to choose
- you're building a Laravel app that accepts HTML from users
- you need a battle-tested, standards-compliant HTML sanitizer
- you want a simple facade/helper API over HTMLPurifier

## When to avoid
- you're not using Laravel or PHP
- you only need to escape plain text (use built-in escaping instead)
- you need sanitization in JavaScript on the client side

## Facets
- artifact type: library
- maturity: stable
- function: security, middleware, templating
- domain: web-development, security, backend
- platform: php
- tags: htmlpurifier, xss-protection, html-sanitization, laravel-package, input-cleaning, laravel

## Member repositories
- mewebstudio/Purifier (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.636267+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:04:42.803252+00:00, confidence not recorded.
  - readme: https://github.com/mewebstudio/Purifier (fetched 2026-08-28T04:06:01.636267+00:00, sha d2f2b0f7c8ab)
- Data as of 2026-08-30T08:39:29.467469+00:00.
