ali-sharifi/xss-cleaner-filter

additional laravel filter to prevent xss attack

Downloads

16

Stars

3

Version

This package has been archived

Laravel XSS FILTER

This package add an additional filter to prevent xss attack.

Installation

Require the package in composer.json:

"ali-sharifi/xss-cleaner-filter": "dev-master"

Then in your project root directory run :

	composer update

Then, include the following in the array on service providers in config/app.php:

'AliSharifi\XssCleanerFilter\XssCleanerFilterServiceProvider' ,

Usage

You can clean your input HTML code from Xss attacks using xss filter :

<?php

Route::post('/',array('before' => 'xss',function(){
		//
}));
alisharifi01

Author

alisharifi01