定制 mouf/utils.common.validators 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mouf/utils.common.validators

最新稳定版本:v3.1.0

Composer 安装命令:

composer require mouf/utils.common.validators

包简介

This package contains typical validators to be used in your application. A validator is a class that decides whether a string is valid or not. For instance, you could use an EmailValidator to validate that a string is a mail, etc...

README 文档

README

This package contains typical validators to be used in your application. A validator is a class that decides whether a string is valid or not and implements the ValidatorInterface.

The ValidatorInterface is part of this package.

For instance, you could use an EmailValidator to validate that a string is a mail, etc...

List of embedded validators

  • RequiredValidator: validates a value is not empty
  • NumericValidator: validates a value is a number (optionnally an integer)
  • EmailValidator: validates an email address
  • URLValidator: validates a URL (starting with http://, https:// or ftp://)
  • MaxMinRangeValidator: validates a value is between 2 bounds
  • MaxMinRangeLengthValidator: validates a string length is between 2 bounds
  • SiretValidator: validates a value is a valid SIRET number (French company id)

Javascript validation

If the validator implements the JsValidatorInterface, it provides the code to be run both in PHP and in Javascript. This means you can use this validator to generate Javascript code that validates any value.

I18n

The validators in the packet rely in Fine for translating validation error messages.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-11-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固