2017 © Pedro Peláez
 

library validate

A PHP validation proxy to various validate libraries.

image

phossa2/validate

A PHP validation proxy to various validate libraries.

  • Thursday, September 29, 2016
  • by phossa2
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

phossa2/validate

Build Status Code Quality Code Climate PHP 7 ready HHVM Latest Stable Version License, (*1)

phossa2/validate is a PHP validation proxy to various validate libraries., (*2)

It requires PHP 5.4, supports PHP 7.0+ and HHVM. It is compliant with PSR-1, PSR-2, PSR-3, PSR-4, and the proposed PSR-5., (*3)

Installation

Install via the composer utility., (*4)

composer require "phossa2/validate"

or add the following lines to your composer.json, (*5)

{
    "require": {
       "phossa2/validate": "^2.0.0"
    }
}

Usage

Create the validate instance,, (*6)

use Phossa2\Validate\Validate;

$v = new Validate();

if (true === $v->validate($_POST, [
    'username' => 'required|alpha_numeric',
    'password' => 'required|max_len,100|min_len,6'
])) {
    // continue
} else {
    $err = $v->getError();
}

Change log

Please see CHANGELOG from more information., (*7)

Testing

$ composer test

Contributing

Please see CONTRIBUTE for more information., (*8)

Dependencies

  • PHP >= 5.4.0, (*9)

  • phossa2/shared >= 2.0.21, (*10)

  • wixel/gump >= 1.4, (*11)

License

MIT License, (*12)

The Versions

29/09 2016

dev-master

9999999-dev https://github.com/phossa2/validate

A PHP validation proxy to various validate libraries.

  Sources   Download

MIT

The Requires

 

The Development Requires

framework validate phossa phossa2

26/09 2016

2.0.0

2.0.0.0 https://github.com/phossa2/validate

A PHP validation proxy to various validate libraries.

  Sources   Download

MIT

The Requires

 

The Development Requires

validate phossa