2017 © Pedro PelĂĄez
 

library sanitize

Sanitizes arbitrary objects and arrays.

image

adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  • Monday, July 30, 2012
  • by adamnbowen
  • Repository
  • 2 Watchers
  • 3 Stars
  • 107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Sanitize

Build Status, (*1)

Sanitizes arbitrary objects and arrays, and provides an object interface for accessing the sanitized objects and arrays., (*2)

Usage

<?php
use Sanitize\Sanitize;

$sanitized = Sanitize::clean($_POST);
$sanitized->foo; // == a sanitized $_POST['foo'] OR null

Installation

Install via Composer, by first adding the following in your composer.json file:, (*3)

{
    "require": {
        "adamnbowen/sanitize": "0.3.*"
    }
}

Then run php composer.phar install in your terminal to download and install Sanitize. Make sure to require the vendor/autoload.php generated by Composer, and you should be good to go., (*4)

Coding Standards

Use the following coding standards in order:, (*5)

  1. PSR-0 Autoloading Standard
  2. PSR-1 Basic Coding Standard
  3. PSR-2 Coding Style Guide
  4. Zend Framework Coding Standard for PHP
  5. PEAR Coding Standards

TODO

  • Test injection of objects into Sanitize
  • Test __PHP_Incomplete_Class fix

Changelog

  • Sanitize::Clean() is now Sanitize::clean()
  • Filtered has been renamed to Proxy()
  • Proxy is now iterable, so you can foreach over sanitized objects/arrays
  • !empty() is no longer called on values—Sanitized objects will retain values of false, 0, etc.

The Versions

30/07 2012

dev-master

9999999-dev https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

proxy sanitize

30/07 2012

0.3.0

0.3.0.0 https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

proxy sanitize

26/07 2012

0.2.2

0.2.2.0 https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

proxy sanitize

26/07 2012

0.2.1

0.2.1.0 https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

filter sanitize

26/07 2012

0.2.0

0.2.0.0 https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

filter sanitize

26/07 2012

0.1.2

0.1.2.0 https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

filter sanitize

26/07 2012

0.1.1

0.1.1.0 https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

filter sanitize

20/07 2012

0.1.0

0.1.0.0 https://github.com/adamnbowen/sanitize

Sanitizes arbitrary objects and arrays.

  Sources   Download

dbad

The Requires

  • php >=5.3.0

 

by Russell Stringer

filter sanitize