unn / faker-xss
A faker XSS library.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/unn/faker-xss
Requires
- fzaninotto/faker: 1.5.*@dev
Requires (Dev)
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: ~1.5
This package is not auto-updated.
Last update: 2022-10-29 06:17:40 UTC
README
=========
Faker-xss is a provider for the Faker library. This provider will give basic XSS testing your app with fake data.
Basic usage
$faker = \Faker\Factory::create(); $faker->addProvider(new Xss($faker)); $string = $faker->xss; #<script>alert('XSS');</script>
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'); #<script>alert('string');</script>