Download the PHP package mix/validate without Composer

On this page you can find all versions of the php package mix/validate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package validate

OpenMix 出品:https://openmix.org

Mix Validator

Validator based on PSR-7 standard

基于 PSR-7 标准的验证器

Installation

创建表单

继承 Mix\Validator\Validator 并定义:

在控制器中验证

验证规则

全部的验证类型与对应的验证选项如下

call 验证类型

该类型为用户自定义验证规则,callback 内指定一个用户自定义的方法来验证

file / image 验证类型

该类型用来验证文件,包含的两个验证选项如下:

验证成功后模型类会增加一个同名属性,该属性为 Psr\Http\Message\UploadedFileInterface 类的实例化对象,可直接调用 $this->[attributeName]->moveTo($targetPath) 移动到你需要存放的位置

静态调用

License

Apache License Version 2.0, http://www.apache.org/licenses/


All versions of validate with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
ext-mbstring Version *
psr/http-message Version ^1.0
mix/bean Version ~2.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mix/validate contains the following files

Loading the files please wait ....