New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sneek/laravel-xss-middleware

Simple Laravel XSS middlware to strip all tags and encode all entities from a user
3,583 2
Install
composer require sneek/laravel-xss-middleware
Latest Version:1.1.0
PHP:>=5.4
Laravel:5
License:GPL-3.0
Last Updated:Oct 8, 2017
Links: GitHub  ·  Packagist
Maintainer: CristianGiordano

XSS Middleware

A simple middleware for use in Laravel projects.

Installation

Clone the repository

composer require sneek/laravel-xss-middleware

Add to the Http kernel App\Http\Kernel

    /**
     * The application's route middleware groups.
     *
     * @var array
     */
    protected $middlewareGroups = [
        'web' => [
            ...
            \Sneek\Http\Middleware\XSSProtection::class,
        ],
    ....

Related Packages

masterro/laravel-xss-filter

Filter user input for XSS but don't touch other html

299,601 41
frozennode/xssinput

A simple extension of the Laravel Input facade that mimics CodeIgniter's xss fil...

71,089 39
shin1x1/laravel-force-https-url-scheme

Force https url schema middleware for Laravel 5

26,582 25
spatelsofmen/xssinput

A simple extension of the Laravel Input facade that mimics CodeIgniter's xss fil...

102 0
laravel-dev-common/union-middleware

Laravel dev middleware util

95 0

Version History

Version Released PHP Laravel License
1.1.0 >=5.4 ^5.0 GPL-3.0
1.0.0 >=5.4 ^5.0 GPL-3.0