Skip to content

a PHP and Laravel package to transform strings to prevent xss injection

License

Notifications You must be signed in to change notification settings

dena-a/xss-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XssTransformer

a PHP and Laravel package to transform strings to prevent xss injection

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

  • PHP >= 7.4

Installation

Add the package to your composer file via the composer require command:

$ composer require dena-a/xss-transformer:^0.1

Or add it to composer.json manually:

"require": {
    "dena-a/xss-transformer": "^0.1"
}

Laravel\Lumen

  1. XssTransformer's service providers will be automatically registered using Laravel's auto-discovery feature.

    Note: For Lumen you have to add the XssTransformer service provider manually to: bootstrap/app.php :

    $app->register(Dena\XssTransformer\Laravel\XssTransformerServiceProvider::class);
  2. Publish the config-file with:

    php artisan vendor:publish --provider="Dena\XssTransformer\Laravel\XssTransformerServiceProvider"

Usage

TODO:

Contribute

Contributions are always welcome!

Support

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

License

The MIT License (MIT). Please see License File for more information.

About

a PHP and Laravel package to transform strings to prevent xss injection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages