2017 © Pedro Peláez
 

library validator

The data format validation.

image

5ichong/validator

The data format validation.

  • Friday, June 1, 2018
  • by daxiong123
  • Repository
  • 0 Watchers
  • 1 Stars
  • 1,484 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

Validator - The data format validation

Build Status, (*1)



Installation

To install Validator, simply:, (*2)

$ composer require 5ichong/validator

For latest commit version:, (*3)

$ composer require 5ichong/validator @dev

Requirements

Validator works with PHP 5.6, 7.0, 7.1., (*4)

Quick Start and Examples

require __DIR__ . '/vendor/autoload.php';

use \Aichong\Validator;

$curl = new Validator();
$validator->validate(['test' => ''], ['test' => 'required'], ['test' => 'empty']);
$validator->validate(['test' => '1'], ['test' => 'equals:1'], ['test' => 'noequals']);
$validator->validate(['test' => '123'], ['test' => 'length:3'], ['test' => 'nolength']);
$validator->validate(['test' => '15821789646'], ['test' => 'phone'], ['test' => 'nophone'])

The Versions

01/06 2018

dev-master

9999999-dev

The data format validation.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.5.0

 

The Development Requires

by Weijian Zhang

validator check validate