PHPackages                             aimeos/sanitizer - 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. aimeos/sanitizer

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

aimeos/sanitizer
================

Permissive sanitizer removing potentially dangerous content

0.4(2w ago)17010.5k↑193.9%1LGPL-2.1+PHPPHP ^8.0CI failing

Since Dec 13Pushed 2w agoCompare

[ Source](https://github.com/aimeos/sanitizer)[ Packagist](https://packagist.org/packages/aimeos/sanitizer)[ RSS](/packages/aimeos-sanitizer/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (5)Used By (1)

Aimeos Sanitizer
================

[](#aimeos-sanitizer)

Permissive sanitizer removing potentially dangerous content.

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

[](#installation)

```
composer req aimeos/sanitizer
```

Usage
-----

[](#usage)

```
$input = '

    alert(1)
    Click me

';
echo \Aimeos\Sanitizer\Sane::html( $input );

// Output: Click me
```

Specification
-------------

[](#specification)

### HTML

[](#html)

Removes these potential dangerous content:

- Elements: 'embed', 'frame', 'iframe', 'object', 'script', 'svg'
- Attributes: All that can execute code
- URI schemes: 'javascript', 'data', 'vbscript', 'file', 'filesystem', 'blob'
- IDs and names: Names used for global JS objects

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance96

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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

Total

4

Last Release

20d ago

PHP version history (2 changes)0.1PHP ^8.1

0.4PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![aimeos](https://avatars.githubusercontent.com/u/8647429?v=4)](https://github.com/aimeos "aimeos (34 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aimeos-sanitizer/health.svg)

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

###  Alternatives

[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[silverstripe/framework

The SilverStripe framework

7313.7M2.8k](/packages/silverstripe-framework)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[typo3/html-sanitizer

HTML sanitizer aiming to provide XSS-safe markup based on explicitly allowed tags, attributes and values.

2810.6M9](/packages/typo3-html-sanitizer)[code16/sharp

Laravel Content Management Framework

79164.7k8](/packages/code16-sharp)

PHPackages © 2026

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