Download the PHP package furthestworld/validator without Composer

On this page you can find all versions of the php package furthestworld/validator. 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 validator

validator

yeah, another params validate component for PHP applications.

嗯,又一个PHP应用参数验证组件

安装

并更新composer依赖:composer update

食用方法

语法说明

参数格式化

参数验证

分隔符 |或验证(满足其中的至少一项验证)

分隔符 #与验证(满足其中所有的验证项)

分隔符 : :方法和参数分隔符

分隔符 , :多个参数分隔符

如上面的规则:'number#numberGt0|string#string:10,500' 解析成PHP代码逻辑相当于:

为了避免方法名和PHP关键字冲突,对应规则中的方法在解析成方法名时会自动加上前缀 check 比如上面的numbernumberGt0string 验证方法对应的方法分别为: checkNumbercheckNumberGt0checkString

规则实例扩展

format_rulecheck_rule 除了使用组件自带的格式化和验证方法,也支持自定义方法。 只需要把自定义的规则实例注册到组件的扩展规则中就可以了,如:

enjoy~ :)


All versions of validator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.19
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 furthestworld/validator contains the following files

Loading the files please wait ....