2017 © Pedro Peláez
 

library laravel-xss

image

gvlatko/laravel-xss

  • Friday, October 25, 2013
  • by gvlatko
  • Repository
  • 3 Watchers
  • 16 Stars
  • 363 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

laravel-xss

A port of CodeIgniter Security Library to Laravel for XSS prevention, (*1)

Installation

Include the package in your composer file, (*2)

"require": {
    "gvlatko/laravel-xss": "dev-master"
}

Run composer update, (*3)

Add the service provider in you app.php config file in the 'providers' array, (*4)

'Gvlatko\LaravelXss\LaravelXssServiceProvider'

and add the alies also in the app.php config file in the 'aliases' array, (*5)

'Xss'             => 'Gvlatko\LaravelXss\LaravelXssFacade'

Usage

Use the Xss::clean($str, $is_image = FALSE) to clean user input. For example:, (*6)

$cleaned = Xss::clean(Input::get('comment');

or for use with images, (*7)

$cleaned = Xss::clean(Input::file('profile'), TRUE);

The Versions

25/10 2013

dev-master

9999999-dev

  Sources   Download

The Requires