PHPackages                             unn/faker-xss - 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. unn/faker-xss

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

unn/faker-xss
=============

A faker XSS library.

18PHP

Since Jan 28Pushed 10y agoCompare

[ Source](https://github.com/unn/faker-xss)[ Packagist](https://packagist.org/packages/unn/faker-xss)[ RSS](/packages/unn-faker-xss/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

faker-xss
=========

[](#faker-xss)

=========

Faker-xss is a provider for the [Faker](https://github.com/fzaninotto/Faker) library. This provider will give basic XSS testing your app with fake data.

[![SensioLabsInsight](https://camo.githubusercontent.com/728b98ef67506e6b7d75b295efe14972fee9c5f8e27c5ff39edfe82daa52859b/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62633433343966392d613937302d346337362d623264642d3934366636303436373461362f6d696e692e706e67)](https://insight.sensiolabs.com/projects/bc4349f9-a970-4c76-b2dd-946f604674a6) [![Build Status](https://camo.githubusercontent.com/580b912fda72a73affd041138274ffe9ebefd69abc819425c5d4e65724b55040/68747470733a2f2f7472617669732d63692e6f72672f756e6e2f66616b65722d7873732e737667)](https://travis-ci.org/unn/faker-xss)

Basic usage
-----------

[](#basic-usage)

```
$faker = \Faker\Factory::create();
$faker->addProvider(new Xss($faker));
$string = $faker->xss; #alert('XSS');
```

Using custom strings, useful for providing labels to which form fields are being seeded with data.

```
$faker = \Faker\Factory::create();
$faker->addProvider(new Xss($faker));
$string = $faker->xss('string'); #alert('string');
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![unn](https://avatars.githubusercontent.com/u/78317?v=4)](https://github.com/unn "unn (6 commits)")

### Embed Badge

![Health badge](/badges/unn-faker-xss/health.svg)

```
[![Health](https://phpackages.com/badges/unn-faker-xss/health.svg)](https://phpackages.com/packages/unn-faker-xss)
```

###  Alternatives

[metabolism/acf-extensions

ACF Extensions plugin with components, dynamic select, inline micro editor and much more

163.5k](/packages/metabolism-acf-extensions)[tomaj/prepositioner

Preposition replace library

108.3k](/packages/tomaj-prepositioner)

PHPackages © 2026

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