sneek/laravel-xss-middleware

Simple Laravel XSS middlware to strip all tags and encode all entities from a user
3,582 2
Install
composer require sneek/laravel-xss-middleware
Latest Version:1.1.0
PHP:>=5.4
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

spatie/laravel-authorize

A middleware to check authorization

26,498 203
fungku/spamguard

Guarding form requests from spam bots.

128 13
denismitr/laracors

Cross Origin Resource Sharing Middleware for Laravel or Lumen

113 3
grazulex/laravel-multipersona

Laravel MultiPersona is a lightweight context-layer system for Laravel users. It...

367 97
tucker-eric/laravel-xml-middleware

A Laravel Middleware to accept XML requests

1,191,423 18