承接 hampel/validate-laravel 相关项目开发

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

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

hampel/validate-laravel

Composer 安装命令:

composer require hampel/validate-laravel

包简介

Extends the Laravel validation service with additional rules

README 文档

README

Latest Version on Packagist Total Downloads Open Issues License

Custom Validators for Laravel

By Simon Hampel.

Installation

The recommended way of installing this validation library is through Composer:

Require the package via Composer in your composer.json

{
    "require": {
        "hampel/validate-laravel": "^2.8"
    }
}

Run Composer to update the new requirement.

$ composer update

The package is built to work with the Laravel Framework.

Notes

Version 2.8 of this library renames the bool rule to __bool_equiv__ to avoid conflicts with the core bool rule.

Version 2.0 of this library removes several rules previously available:

unique_or_zero and exists_or_zero have been removed as they were deemed to be of little value

domain, domain_in, tld and tld_in have been moved to a new package hampel/tlds.

The getTlds helper function has also been removed and you should install the hampel/tlds package to gain access to all new functions for retrieving an up-to-date list of all valid TLDs directly from IANA or other sources.

Usage

This package adds additional validators for Laravel - refer to Laravel Documentation - Validation for general usage instructions.

__bool_equiv__

The field under validation must be the equivalent of a "boolean" (either true or false) in a variety of forms. Acceptable values include: "1", "true", "on" and "yes", "0", "false", "off", "no", "", and NULL

ipv4_public

The field under validation must be a public IPv4 address - ie. not in the "private" or "reserved" ranges.

ipv6_public

The field under validation must be a public IPv6 address - ie. not in the "private" or "reserved" ranges.

ip_public

The field under validation must be a public IPv4 or IPv6 address - ie. not in the "private" or "reserved" ranges.

uploaded_file

The field under validation must be an uploaded file of type Symfony\Component\HttpFoundation\File\UploadedFile, as returned from Input::file(). The file upload must also be valid, that is, the upload must have succeeded with an error return of UPLOAD_ERR_OK (see File Upload Error Messages Explained for more details on file upload errors)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固