PHPackages                             jblond/php-xss-filter - 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. [Security](/categories/security)
4. /
5. jblond/php-xss-filter

ActiveLibrary[Security](/categories/security)

jblond/php-xss-filter
=====================

PHP XSS Filter

1.1(7y ago)1713213MITPHPPHP &gt;= 5.6

Since Mar 1Pushed 5y ago7 watchersCompare

[ Source](https://github.com/JBlond/PHP-XSS-Filter)[ Packagist](https://packagist.org/packages/jblond/php-xss-filter)[ RSS](/packages/jblond-php-xss-filter/feed)WikiDiscussions master Synced 3w ago

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

[![Code Climate](https://camo.githubusercontent.com/0900e39328f9219adebf0ec3d2cb3afc6cbac90357843a48a3a17bf444166521/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a426c6f6e642f5048502d5853532d46696c7465722f6261646765732f6770612e737667)](https://codeclimate.com/github/JBlond/PHP-XSS-Filter) [![SensioLabsInsight](https://camo.githubusercontent.com/b1d7719dc3566dc705751cb5a9fbe920963ffd525842bb47c4297aa0344980ea/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62663163326261382d623239322d343964652d626562632d3933653339333434613136392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/bf1c2ba8-b292-49de-bebc-93e39344a169) [![Codacy Badge](https://camo.githubusercontent.com/2122452fe881119f0f2604413a2e98ca2dac609de06e81b76b3270357c69940c/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f67726164652f6133343562323736333166323430373739663862303136616265633835343630)](https://www.codacy.com/app/leet31337/PHP-XSS-Filter)

PHP-XSS-Filter
==============

[](#php-xss-filter)

Install
-------

[](#install)

```
composer require jblond/php-xss-filter
```

Example
-------

[](#example)

```
	require './xss_filter.class.php';
	$xss = new xss_filter();
	$string = 'blah';
	$string = $xss->filter_it($string );
	echo $string;
```

Contribute
----------

[](#contribute)

Open a PR, open an issue

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2672d ago

### Community

Maintainers

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

---

Top Contributors

[![JBlond](https://avatars.githubusercontent.com/u/2391810?v=4)](https://github.com/JBlond "JBlond (31 commits)")

---

Tags

phpxss

### Embed Badge

![Health badge](/badges/jblond-php-xss-filter/health.svg)

```
[![Health](https://phpackages.com/badges/jblond-php-xss-filter/health.svg)](https://phpackages.com/packages/jblond-php-xss-filter)
```

PHPackages © 2026

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