2017 © Pedro Peláez
 

library jinput

Laravel 4 XSS input filterer

image

jasonnz/jinput

Laravel 4 XSS input filterer

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Jinput Laravel 4 Package

A Laravel 4 alternative to Input, allowing you to have XSS filter and sanitized user input., (*1)

Now compatible with PHP 5.3, (*2)

Usage - Examples

Jinput::all() - Grabs all input that Input::all() would normally give you, but XSS filtered., (*3)

Jinput::get('email') - Grabs an email field, just like Input::get('email') would do, again XSS filtered., (*4)

Installation

  1. Add a new entry into the the require: {} array of the composer.json file in the root of your Laravel 4 project. It should look something like this:

"require": { "laravel/framework": "4.0.*", "jasonnz/jinput": "dev-master" },, (*5)

  1. Add the following to the end of the 'providers' array in /app/config/app.php:, (*6)

    'JasonNZ\Jinput\JinputServiceProvider'
  2. Add the following to the end of the 'aliases' array in /app/config/app.php:, (*7)

    'Jinput' => 'JasonNZ\Jinput\Jinput'

How to Use

Simple! Instead of doing the usual Input::get('value'); do this instead: Jinput::get('value');, (*8)

You can also call Jinput::all(); to get all form input;, (*9)

The Versions

22/06 2013

dev-master

9999999-dev

Laravel 4 XSS input filterer

  Sources   Download

The Requires

  • php >=5.3.0

 

by JasonNZ