承接 ibandominguez/validator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ibandominguez/validator

Composer 安装命令:

composer require ibandominguez/validator

包简介

validation class to take care of repetitive tasks

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

validator is a helper class for repetitive validation processes.

Getting Started

Clone or Download this package or install via composer

composer require ibandominguez/validator

Available Rules by '20/Jun/15'

Title Description
required check if the given input exists and it is not empty
email check if the given input is a valid email
array check if the given input is a valid array
numeric check if the given input is a numeric value
string check if the given input is a string value
date check if the given input is a date value with the format (yyyy-mm-dd)
datetime check if the given input is a datetime value with the format (yyyy-mm-dd hh:ii:ss)
time check if the given input is a time value with the format (hh:ii:ss)

Rules Roadmap

  • min
  • max
  • between
  • date format
  • alpha
  • alpha numeric

Use example

In your application:

<?php

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

$inputs = array('name' => '', 'email' => 'johndoe@email.com');
$rules = array('name' => 'required', 'email' => 'required|email');

$v = new IbanDominguez\Validator\Validator($inputs, $rules);

$v->passes(); // => false
$v->getErrors(); // => array('name' => 'name, rule: required');

License

MIT © Ibán Domínguez

统计信息

  • 总下载量: 53
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固