mirror of
https://github.com/Respect/Validation.git
synced 2024-06-20 06:25:05 +02:00
Merge branch '1.1'
This commit is contained in:
commit
4354652195
|
@ -101,8 +101,6 @@ All notable changes of the Respect\Validation releases are documented in this fi
|
|||
***
|
||||
See also:
|
||||
|
||||
- [README](README.md)
|
||||
- [Contributing](CONTRIBUTING.md)
|
||||
- [Feature Guide](docs/README.md)
|
||||
- [Installation](docs/INSTALL.md)
|
||||
- [License](LICENSE.md)
|
||||
- [Validators](docs/VALIDATORS.md)
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace Respect\Validation\Rules;
|
|||
|
||||
/**
|
||||
* Explain in one sentence what this rule does.
|
||||
*
|
||||
*
|
||||
* @author Your Name <youremail@yourdomain.tld>
|
||||
*/
|
||||
final class HelloWorld extends AbstractRule
|
||||
|
@ -160,9 +160,9 @@ use Respect\Validation\Test\RuleTestCase;
|
|||
|
||||
/**
|
||||
* @group rule
|
||||
*
|
||||
*
|
||||
* @covers \Respect\Validation\Rules\HelloWorld
|
||||
*
|
||||
*
|
||||
* @author Your Name <youremail@yourdomain.tld>
|
||||
*/
|
||||
final class HelloWorldTest extends RuleTestCase
|
||||
|
@ -267,10 +267,8 @@ $ vendor/bin/php-cs-fixer fix
|
|||
***
|
||||
See also:
|
||||
|
||||
- [Feature Guide](docs/README.md)
|
||||
- [Installation](docs/INSTALL.md)
|
||||
- [README](README.md)
|
||||
- [License](LICENSE.md)
|
||||
- [Validators](docs/VALIDATORS.md)
|
||||
- [Changelog](CHANGELOG.md)
|
||||
|
||||
|
||||
|
|
|
@ -23,8 +23,6 @@ THE SOFTWARE.
|
|||
***
|
||||
See also:
|
||||
|
||||
- [README](README.md)
|
||||
- [Contributing](CONTRIBUTING.md)
|
||||
- [Feature Guide](docs/README.md)
|
||||
- [Installation](docs/INSTALL.md)
|
||||
- [Validators](docs/VALIDATORS.md)
|
||||
- [Changelog](CHANGELOG.md)
|
||||
|
|
14
README.md
14
README.md
|
@ -10,15 +10,17 @@
|
|||
[The most awesome validation engine ever created for PHP.](http://bit.ly/1a1oeQv)
|
||||
|
||||
- Complex rules made simple: `v::numericVal()->positive()->between(1, 255)->validate($input)`.
|
||||
- [Granularity control](docs/README.md#validation-methods) for advanced reporting.
|
||||
- [More than 130](docs/VALIDATORS.md) (fully tested) validation rules.
|
||||
- [A concrete API](docs/CONCRETE_API.md) for non fluent usage.
|
||||
- Granularity control for advanced reporting.
|
||||
- More than 130 (fully tested) validation rules.
|
||||
- A concrete API for non fluent usage.
|
||||
|
||||
## Documentation
|
||||
|
||||
Documentation can be found in https://respect-validation.readthedocs.io
|
||||
and also in the [docs/](docs/) folder.
|
||||
|
||||
## Table of contents
|
||||
|
||||
- [Contributing](CONTRIBUTING.md)
|
||||
- [Feature Guide](docs/README.md)
|
||||
- [Installation](docs/INSTALL.md)
|
||||
- [License](LICENSE.md)
|
||||
- [Validators](docs/VALIDATORS.md)
|
||||
- [Changelog](CHANGELOG.md)
|
||||
|
|
|
@ -1,368 +0,0 @@
|
|||
# Validators
|
||||
|
||||
## Types
|
||||
|
||||
- [ArrayVal](ArrayVal.md)
|
||||
- [ArrayType](ArrayType.md)
|
||||
- [BoolVal](BoolVal.md)
|
||||
- [BoolType](BoolType.md)
|
||||
- [CallableType](CallableType.md)
|
||||
- [Countable](Countable.md)
|
||||
- [DateTime](DateTime.md)
|
||||
- [FalseVal](FalseVal.md)
|
||||
- [FloatVal](FloatVal.md)
|
||||
- [FloatType](FloatType.md)
|
||||
- [Instance](Instance.md)
|
||||
- [IntVal](IntVal.md)
|
||||
- [IntType](IntType.md)
|
||||
- [IterableType](IterableType.md)
|
||||
- [NullType](NullType.md)
|
||||
- [NumericVal](NumericVal.md)
|
||||
- [ObjectType](ObjectType.md)
|
||||
- [ResourceType](ResourceType.md)
|
||||
- [ScalarVal](ScalarVal.md)
|
||||
- [StringType](StringType.md)
|
||||
- [StringVal](StringVal.md)
|
||||
- [TrueVal](TrueVal.md)
|
||||
- [Type](Type.md)
|
||||
- [Xdigit](Xdigit.md)
|
||||
|
||||
## Generics
|
||||
|
||||
- [AlwaysInvalid](AlwaysInvalid.md)
|
||||
- [AlwaysValid](AlwaysValid.md)
|
||||
- [Call](Call.md)
|
||||
- [Callback](Callback.md)
|
||||
- [FilterVar](FilterVar.md)
|
||||
- [Not](Not.md)
|
||||
- [Optional](Optional.md)
|
||||
- [Type](Type.md)
|
||||
- [When](When.md)
|
||||
|
||||
## Comparing Values
|
||||
|
||||
- [Age](Age.md)
|
||||
- [Between](Between.md)
|
||||
- [Equals](Equals.md)
|
||||
- [Equivalent](Equivalent.md)
|
||||
- [GreaterThan](GreaterThan.md)
|
||||
- [Identical](Identical.md)
|
||||
- [LessThan](LessThan.md)
|
||||
- [Max](Max.md)
|
||||
- [Min](Min.md)
|
||||
|
||||
## Numeric
|
||||
|
||||
- [Base](Base.md)
|
||||
- [Between](Between.md)
|
||||
- [BoolType](BoolType.md)
|
||||
- [Even](Even.md)
|
||||
- [Factor](Factor.md)
|
||||
- [Fibonacci](Fibonacci.md)
|
||||
- [Finite](Finite.md)
|
||||
- [FloatVal](FloatVal.md)
|
||||
- [FloatType](FloatType.md)
|
||||
- [Infinite](Infinite.md)
|
||||
- [IntVal](IntVal.md)
|
||||
- [IntType](IntType.md)
|
||||
- [Multiple](Multiple.md)
|
||||
- [Negative](Negative.md)
|
||||
- [NotEmpty](NotEmpty.md)
|
||||
- [Number](Number.md)
|
||||
- [NumericVal](NumericVal.md)
|
||||
- [Odd](Odd.md)
|
||||
- [PerfectSquare](PerfectSquare.md)
|
||||
- [Positive](Positive.md)
|
||||
- [PrimeNumber](PrimeNumber.md)
|
||||
- [Roman](Roman.md)
|
||||
- [Xdigit](Xdigit.md)
|
||||
|
||||
## String
|
||||
|
||||
- [Alnum](Alnum.md)
|
||||
- [Alpha](Alpha.md)
|
||||
- [Between](Between.md)
|
||||
- [Charset](Charset.md)
|
||||
- [Cntrl](Cntrl.md)
|
||||
- [Consonant](Consonant.md)
|
||||
- [Contains](Contains.md)
|
||||
- [Digit](Digit.md)
|
||||
- [EndsWith](EndsWith.md)
|
||||
- [Graph](Graph.md)
|
||||
- [In](In.md)
|
||||
- [Length](Length.md)
|
||||
- [Lowercase](Lowercase.md)
|
||||
- [NotEmpty](NotEmpty.md)
|
||||
- [NoWhitespace](NoWhitespace.md)
|
||||
- [PhpLabel](PhpLabel.md)
|
||||
- [Printable](Printable.md)
|
||||
- [Punct](Punct.md)
|
||||
- [Regex](Regex.md)
|
||||
- [ResourceType](ResourceType.md)
|
||||
- [Slug](Slug.md)
|
||||
- [Space](Space.md)
|
||||
- [StartsWith](StartsWith.md)
|
||||
- [Uppercase](Uppercase.md)
|
||||
- [Version](Version.md)
|
||||
- [Vowel](Vowel.md)
|
||||
- [Xdigit](Xdigit.md)
|
||||
|
||||
## Arrays
|
||||
|
||||
- [ArrayVal](ArrayVal.md)
|
||||
- [ArrayType](ArrayType.md)
|
||||
- [Contains](Contains.md)
|
||||
- [Each](Each.md)
|
||||
- [EndsWith](EndsWith.md)
|
||||
- [In](In.md)
|
||||
- [Key](Key.md)
|
||||
- [KeyNested](KeyNested.md)
|
||||
- [KeySet](KeySet.md)
|
||||
- [KeyValue](KeyValue.md)
|
||||
- [Length](Length.md)
|
||||
- [NotEmpty](NotEmpty.md)
|
||||
- [StartsWith](StartsWith.md)
|
||||
- [Subset](Subset.md)
|
||||
|
||||
## Objects
|
||||
|
||||
- [Attribute](Attribute.md)
|
||||
- [Instance](Instance.md)
|
||||
- [Length](Length.md)
|
||||
|
||||
## Date and Time
|
||||
|
||||
- [Age](Age.md)
|
||||
- [Between](Between.md)
|
||||
- [Date](Date.md)
|
||||
- [DateTime](DateTime.md)
|
||||
- [LeapDate](LeapDate.md)
|
||||
- [LeapYear](LeapYear.md)
|
||||
- [MaxAge](MaxAge.md)
|
||||
- [MinAge](MinAge.md)
|
||||
- [Time](Time.md)
|
||||
|
||||
## Group Validators
|
||||
|
||||
- [AllOf](AllOf.md)
|
||||
- [AnyOf](AnyOf.md)
|
||||
- [NoneOf](NoneOf.md)
|
||||
- [OneOf](OneOf.md)
|
||||
|
||||
## Regional
|
||||
|
||||
- [CountryCode](CountryCode.md)
|
||||
- [CurrencyCode](CurrencyCode.md)
|
||||
- [IdentityCard](IdentityCard.md)
|
||||
- [LanguageCode](LanguageCode.md)
|
||||
- [PostalCode](PostalCode.md)
|
||||
- [SubdivisionCode](SubdivisionCode.md)
|
||||
- [Tld](Tld.md)
|
||||
|
||||
## Files
|
||||
|
||||
- [Directory](Directory.md)
|
||||
- [Executable](Executable.md)
|
||||
- [Exists](Exists.md)
|
||||
- [Extension](Extension.md)
|
||||
- [File](File.md)
|
||||
- [Image](Image.md)
|
||||
- [Mimetype](Mimetype.md)
|
||||
- [Readable](Readable.md)
|
||||
- [Size](Size.md)
|
||||
- [SymbolicLink](SymbolicLink.md)
|
||||
- [Uploaded](Uploaded.md)
|
||||
- [Writable](Writable.md)
|
||||
|
||||
## Banking
|
||||
|
||||
- [CreditCard](CreditCard.md)
|
||||
|
||||
## Other
|
||||
|
||||
- [Base64](Base64.md)
|
||||
- [Bsn](Bsn.md)
|
||||
- [Cnh](Cnh.md)
|
||||
- [Cnpj](Cnpj.md)
|
||||
- [Cpf](Cpf.md)
|
||||
- [Domain](Domain.md)
|
||||
- [Email](Email.md)
|
||||
- [HexRgbColor](HexRgbColor.md)
|
||||
- [Imei](Imei.md)
|
||||
- [Ip](Ip.md)
|
||||
- [Json](Json.md)
|
||||
- [Luhn](Luhn.md)
|
||||
- [MacAddress](MacAddress.md)
|
||||
- [NfeAccessKey](NfeAccessKey.md)
|
||||
- [Nif](Nif.md)
|
||||
- [NotBlank](NotBlank.md)
|
||||
- [NotOptional](NotOptional.md)
|
||||
- [Pesel](Pesel.md)
|
||||
- [Phone](Phone.md)
|
||||
- [Pis](Pis.md)
|
||||
- [Sf](Sf.md)
|
||||
- [Url](Url.md)
|
||||
- [Uuid](Uuid.md)
|
||||
- [Vatin](Vatin.md)
|
||||
- [VideoUrl](VideoUrl.md)
|
||||
- [Zend](Zend.md)
|
||||
|
||||
## Yes/No
|
||||
|
||||
- [No](No.md)
|
||||
- [Yes](Yes.md)
|
||||
|
||||
## Alphabetically
|
||||
|
||||
- [Age](Age.md)
|
||||
- [AllOf](AllOf.md)
|
||||
- [Alnum](Alnum.md)
|
||||
- [Alpha](Alpha.md)
|
||||
- [AlwaysInvalid](AlwaysInvalid.md)
|
||||
- [AlwaysValid](AlwaysValid.md)
|
||||
- [AnyOf](AnyOf.md)
|
||||
- [ArrayType](ArrayType.md)
|
||||
- [ArrayVal](ArrayVal.md)
|
||||
- [Attribute](Attribute.md)
|
||||
- [Base](Base.md)
|
||||
- [Base64](Base64.md)
|
||||
- [Between](Between.md)
|
||||
- [BoolType](BoolType.md)
|
||||
- [BoolVal](BoolVal.md)
|
||||
- [Bsn](Bsn.md)
|
||||
- [Call](Call.md)
|
||||
- [CallableType](CallableType.md)
|
||||
- [Callback](Callback.md)
|
||||
- [Charset](Charset.md)
|
||||
- [Cnh](Cnh.md)
|
||||
- [Cnpj](Cnpj.md)
|
||||
- [Cntrl](Cntrl.md)
|
||||
- [Consonant](Consonant.md)
|
||||
- [Contains](Contains.md)
|
||||
- [Countable](Countable.md)
|
||||
- [CountryCode](CountryCode.md)
|
||||
- [Cpf](Cpf.md)
|
||||
- [CreditCard](CreditCard.md)
|
||||
- [CurrencyCode](CurrencyCode.md)
|
||||
- [Date](Date.md)
|
||||
- [DateTime](DateTime.md)
|
||||
- [Digit](Digit.md)
|
||||
- [Directory](Directory.md)
|
||||
- [Domain](Domain.md)
|
||||
- [Each](Each.md)
|
||||
- [Email](Email.md)
|
||||
- [EndsWith](EndsWith.md)
|
||||
- [Equals](Equals.md)
|
||||
- [Even](Even.md)
|
||||
- [Executable](Executable.md)
|
||||
- [Exists](Exists.md)
|
||||
- [Extension](Extension.md)
|
||||
- [Factor](Factor.md)
|
||||
- [FalseVal](FalseVal.md)
|
||||
- [Fibonacci](Fibonacci.md)
|
||||
- [File](File.md)
|
||||
- [FilterVar](FilterVar.md)
|
||||
- [Finite](Finite.md)
|
||||
- [FloatType](FloatType.md)
|
||||
- [FloatVal](FloatVal.md)
|
||||
- [Graph](Graph.md)
|
||||
- [GreaterThan](GreaterThan.md)
|
||||
- [HexRgbColor](HexRgbColor.md)
|
||||
- [INSTALL](INSTALL.md)
|
||||
- [Identical](Identical.md)
|
||||
- [IdentityCard](IdentityCard.md)
|
||||
- [Image](Image.md)
|
||||
- [Imei](Imei.md)
|
||||
- [In](In.md)
|
||||
- [Infinite](Infinite.md)
|
||||
- [Instance](Instance.md)
|
||||
- [IntType](IntType.md)
|
||||
- [IntVal](IntVal.md)
|
||||
- [Ip](Ip.md)
|
||||
- [IterableType](IterableType.md)
|
||||
- [Json](Json.md)
|
||||
- [Key](Key.md)
|
||||
- [KeyNested](KeyNested.md)
|
||||
- [KeySet](KeySet.md)
|
||||
- [KeyValue](KeyValue.md)
|
||||
- [LanguageCode](LanguageCode.md)
|
||||
- [LeapDate](LeapDate.md)
|
||||
- [LeapYear](LeapYear.md)
|
||||
- [Length](Length.md)
|
||||
- [LessThan](LessThan.md)
|
||||
- [Lowercase](Lowercase.md)
|
||||
- [Luhn](Luhn.md)
|
||||
- [MacAddress](MacAddress.md)
|
||||
- [Max](Max.md)
|
||||
- [Mimetype](Mimetype.md)
|
||||
- [Min](Min.md)
|
||||
- [MinAge](MinAge.md)
|
||||
- [Multiple](Multiple.md)
|
||||
- [Negative](Negative.md)
|
||||
- [NfeAccessKey](NfeAccessKey.md)
|
||||
- [Nif](Nif.md)
|
||||
- [No](No.md)
|
||||
- [NoWhitespace](NoWhitespace.md)
|
||||
- [NoneOf](NoneOf.md)
|
||||
- [Not](Not.md)
|
||||
- [NotBlank](NotBlank.md)
|
||||
- [NotEmpty](NotEmpty.md)
|
||||
- [NotOptional](NotOptional.md)
|
||||
- [NullType](NullType.md)
|
||||
- [Number](Number.md)
|
||||
- [NumericVal](NumericVal.md)
|
||||
- [ObjectType](ObjectType.md)
|
||||
- [Odd](Odd.md)
|
||||
- [OneOf](OneOf.md)
|
||||
- [Optional](Optional.md)
|
||||
- [PerfectSquare](PerfectSquare.md)
|
||||
- [Pesel](Pesel.md)
|
||||
- [Phone](Phone.md)
|
||||
- [PhpLabel](PhpLabel.md)
|
||||
- [Pis](Pis.md)
|
||||
- [Positive](Positive.md)
|
||||
- [PostalCode](PostalCode.md)
|
||||
- [PrimeNumber](PrimeNumber.md)
|
||||
- [Printable](Printable.md)
|
||||
- [Punct](Punct.md)
|
||||
- [Readable](Readable.md)
|
||||
- [Regex](Regex.md)
|
||||
- [ResourceType](ResourceType.md)
|
||||
- [Roman](Roman.md)
|
||||
- [ScalarVal](ScalarVal.md)
|
||||
- [Sf](Sf.md)
|
||||
- [Size](Size.md)
|
||||
- [Slug](Slug.md)
|
||||
- [Space](Space.md)
|
||||
- [StartsWith](StartsWith.md)
|
||||
- [StringType](StringType.md)
|
||||
- [StringVal](StringVal.md)
|
||||
- [SubdivisionCode](SubdivisionCode.md)
|
||||
- [Subset](Subset.md)
|
||||
- [SymbolicLink](SymbolicLink.md)
|
||||
- [Time](Time.md)
|
||||
- [Tld](Tld.md)
|
||||
- [TrueVal](TrueVal.md)
|
||||
- [Type](Type.md)
|
||||
- [Uploaded](Uploaded.md)
|
||||
- [Uppercase](Uppercase.md)
|
||||
- [Url](Url.md)
|
||||
- [Uuid](Uuid.md)
|
||||
- [Vatin](Vatin.md)
|
||||
- [Version](Version.md)
|
||||
- [VideoUrl](VideoUrl.md)
|
||||
- [Vowel](Vowel.md)
|
||||
- [When](When.md)
|
||||
- [Writable](Writable.md)
|
||||
- [Xdigit](Xdigit.md)
|
||||
- [Yes](Yes.md)
|
||||
- [Zend](Zend.md)
|
||||
|
||||
***
|
||||
See also:
|
||||
|
||||
- [Contributing](../CONTRIBUTING.md)
|
||||
- [Feature Guide](README.md)
|
||||
- [Installation](INSTALL.md)
|
||||
- [License](../LICENSE.md)
|
||||
- [Changelog](../CHANGELOG.md)
|
|
@ -55,7 +55,7 @@ validated object as the first node in the chain.
|
|||
|
||||
## Validating array keys and values
|
||||
|
||||
Validating array keys into another array is also possible using [Key](Key.md).
|
||||
Validating array keys into another array is also possible using [Key](rules/Key.md).
|
||||
|
||||
If we got the array below:
|
||||
|
||||
|
@ -102,7 +102,7 @@ v::optional(v::alpha())->validate(null); // true
|
|||
|
||||
By _optional_ we consider `null` or an empty string (`''`).
|
||||
|
||||
See more on [Optional](Optional.md).
|
||||
See more on [Optional](rules/Optional.md).
|
||||
|
||||
## Negating rules
|
||||
|
||||
|
@ -179,8 +179,8 @@ try {
|
|||
```
|
||||
|
||||
The `getMessages()` returns an array in which the keys are the name of the
|
||||
validators, or its reference in case you are using [Key](Key.md) or
|
||||
[Attribute](Attribute.md) rule:
|
||||
validators, or its reference in case you are using [Key](rules/Key.md) or
|
||||
[Attribute](rules/Attribute.md) rule:
|
||||
|
||||
```no-highlight
|
||||
Array
|
||||
|
@ -358,12 +358,3 @@ Message:
|
|||
```no-highlight
|
||||
"really messed up screen#name" must contain only letters (a-z) and digits (0-9)
|
||||
```
|
||||
|
||||
***
|
||||
See also:
|
||||
|
||||
- [Contributing](../CONTRIBUTING.md)
|
||||
- [Installation](INSTALL.md)
|
||||
- [License](../LICENSE.md)
|
||||
- [Validators](VALIDATORS.md)
|
||||
- [Changelog](../CHANGELOG.md)
|
15
docs/index.md
Normal file
15
docs/index.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Overview
|
||||
|
||||
[![Build Status](https://img.shields.io/travis/Respect/Validation/master.svg?style=flat-square)](http://travis-ci.org/Respect/Validation)
|
||||
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/Respect/Validation/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
|
||||
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/Respect/Validation/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
|
||||
[![Latest Stable Version](https://img.shields.io/packagist/v/respect/validation.svg?style=flat-square)](https://packagist.org/packages/respect/validation)
|
||||
[![Total Downloads](https://img.shields.io/packagist/dt/respect/validation.svg?style=flat-square)](https://packagist.org/packages/respect/validation)
|
||||
[![License](https://img.shields.io/packagist/l/respect/validation.svg?style=flat-square)](https://packagist.org/packages/respect/validation)
|
||||
|
||||
[The most awesome validation engine ever created for PHP.](http://bit.ly/1a1oeQv)
|
||||
|
||||
- Complex rules made simple: `v::numericVal()->positive()->between(1, 255)->validate($input)`.
|
||||
- [Granularity control](feature-guide.md#validation-methods) for advanced reporting.
|
||||
- [More than 130](list-of-rules.md) (fully tested) validation rules.
|
||||
- [A concrete API](concrete-api.md) for non fluent usage.
|
|
@ -8,11 +8,3 @@ composer require respect/validation
|
|||
```
|
||||
|
||||
Works on PHP 7.0 or above.
|
||||
|
||||
***
|
||||
See also:
|
||||
|
||||
- [Contributing](../CONTRIBUTING.md)
|
||||
- [Feature Guide](README.md)
|
||||
- [License](../LICENSE.md)
|
||||
- [Validators](VALIDATORS.md)
|
21
docs/license.md
Normal file
21
docs/license.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# License
|
||||
|
||||
Copyright (c) [Alexandre Gomes Gaigalas](http://github.com/alganet).
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
359
docs/list-of-rules.md
Normal file
359
docs/list-of-rules.md
Normal file
|
@ -0,0 +1,359 @@
|
|||
# List of rules
|
||||
|
||||
## Types
|
||||
|
||||
- [ArrayVal](rules/ArrayVal.md)
|
||||
- [ArrayType](rules/ArrayType.md)
|
||||
- [BoolVal](rules/BoolVal.md)
|
||||
- [BoolType](rules/BoolType.md)
|
||||
- [CallableType](rules/CallableType.md)
|
||||
- [Countable](rules/Countable.md)
|
||||
- [DateTime](rules/DateTime.md)
|
||||
- [FalseVal](rules/FalseVal.md)
|
||||
- [FloatVal](rules/FloatVal.md)
|
||||
- [FloatType](rules/FloatType.md)
|
||||
- [Instance](rules/Instance.md)
|
||||
- [IntVal](rules/IntVal.md)
|
||||
- [IntType](rules/IntType.md)
|
||||
- [IterableType](rules/IterableType.md)
|
||||
- [NullType](rules/NullType.md)
|
||||
- [NumericVal](rules/NumericVal.md)
|
||||
- [ObjectType](rules/ObjectType.md)
|
||||
- [ResourceType](rules/ResourceType.md)
|
||||
- [ScalarVal](rules/ScalarVal.md)
|
||||
- [StringType](rules/StringType.md)
|
||||
- [StringVal](rules/StringVal.md)
|
||||
- [TrueVal](rules/TrueVal.md)
|
||||
- [Type](rules/Type.md)
|
||||
- [Xdigit](rules/Xdigit.md)
|
||||
|
||||
## Generics
|
||||
|
||||
- [AlwaysInvalid](rules/AlwaysInvalid.md)
|
||||
- [AlwaysValid](rules/AlwaysValid.md)
|
||||
- [Call](rules/Call.md)
|
||||
- [Callback](rules/Callback.md)
|
||||
- [FilterVar](rules/FilterVar.md)
|
||||
- [Not](rules/Not.md)
|
||||
- [Optional](rules/Optional.md)
|
||||
- [Type](rules/Type.md)
|
||||
- [When](rules/When.md)
|
||||
|
||||
## Comparing Values
|
||||
|
||||
- [Age](rules/Age.md)
|
||||
- [Between](rules/Between.md)
|
||||
- [Equals](rules/Equals.md)
|
||||
- [Equivalent](rules/Equivalent.md)
|
||||
- [GreaterThan](rules/GreaterThan.md)
|
||||
- [Identical](rules/Identical.md)
|
||||
- [LessThan](rules/LessThan.md)
|
||||
- [Max](rules/Max.md)
|
||||
- [Min](rules/Min.md)
|
||||
|
||||
## Numeric
|
||||
|
||||
- [Base](rules/Base.md)
|
||||
- [Between](rules/Between.md)
|
||||
- [BoolType](rules/BoolType.md)
|
||||
- [Even](rules/Even.md)
|
||||
- [Factor](rules/Factor.md)
|
||||
- [Fibonacci](rules/Fibonacci.md)
|
||||
- [Finite](rules/Finite.md)
|
||||
- [FloatVal](rules/FloatVal.md)
|
||||
- [FloatType](rules/FloatType.md)
|
||||
- [Infinite](rules/Infinite.md)
|
||||
- [IntVal](rules/IntVal.md)
|
||||
- [IntType](rules/IntType.md)
|
||||
- [Multiple](rules/Multiple.md)
|
||||
- [Negative](rules/Negative.md)
|
||||
- [NotEmpty](rules/NotEmpty.md)
|
||||
- [Number](rules/Number.md)
|
||||
- [NumericVal](rules/NumericVal.md)
|
||||
- [Odd](rules/Odd.md)
|
||||
- [PerfectSquare](rules/PerfectSquare.md)
|
||||
- [Positive](rules/Positive.md)
|
||||
- [PrimeNumber](rules/PrimeNumber.md)
|
||||
- [Roman](rules/Roman.md)
|
||||
- [Xdigit](rules/Xdigit.md)
|
||||
|
||||
## String
|
||||
|
||||
- [Alnum](rules/Alnum.md)
|
||||
- [Alpha](rules/Alpha.md)
|
||||
- [Between](rules/Between.md)
|
||||
- [Charset](rules/Charset.md)
|
||||
- [Cntrl](rules/Cntrl.md)
|
||||
- [Consonant](rules/Consonant.md)
|
||||
- [Contains](rules/Contains.md)
|
||||
- [Digit](rules/Digit.md)
|
||||
- [EndsWith](rules/EndsWith.md)
|
||||
- [Graph](rules/Graph.md)
|
||||
- [In](rules/In.md)
|
||||
- [Length](rules/Length.md)
|
||||
- [Lowercase](rules/Lowercase.md)
|
||||
- [NotEmpty](rules/NotEmpty.md)
|
||||
- [NoWhitespace](rules/NoWhitespace.md)
|
||||
- [PhpLabel](rules/PhpLabel.md)
|
||||
- [Printable](rules/Printable.md)
|
||||
- [Punct](rules/Punct.md)
|
||||
- [Regex](rules/Regex.md)
|
||||
- [ResourceType](rules/ResourceType.md)
|
||||
- [Slug](rules/Slug.md)
|
||||
- [Space](rules/Space.md)
|
||||
- [StartsWith](rules/StartsWith.md)
|
||||
- [Uppercase](rules/Uppercase.md)
|
||||
- [Version](rules/Version.md)
|
||||
- [Vowel](rules/Vowel.md)
|
||||
- [Xdigit](rules/Xdigit.md)
|
||||
|
||||
## Arrays
|
||||
|
||||
- [ArrayVal](rules/ArrayVal.md)
|
||||
- [ArrayType](rules/ArrayType.md)
|
||||
- [Contains](rules/Contains.md)
|
||||
- [Each](rules/Each.md)
|
||||
- [EndsWith](rules/EndsWith.md)
|
||||
- [In](rules/In.md)
|
||||
- [Key](rules/Key.md)
|
||||
- [KeyNested](rules/KeyNested.md)
|
||||
- [KeySet](rules/KeySet.md)
|
||||
- [KeyValue](rules/KeyValue.md)
|
||||
- [Length](rules/Length.md)
|
||||
- [NotEmpty](rules/NotEmpty.md)
|
||||
- [StartsWith](rules/StartsWith.md)
|
||||
- [Subset](rules/Subset.md)
|
||||
|
||||
## Objects
|
||||
|
||||
- [Attribute](rules/Attribute.md)
|
||||
- [Instance](rules/Instance.md)
|
||||
- [Length](rules/Length.md)
|
||||
|
||||
## Date and Time
|
||||
|
||||
- [Age](rules/Age.md)
|
||||
- [Between](rules/Between.md)
|
||||
- [Date](rules/Date.md)
|
||||
- [DateTime](rules/DateTime.md)
|
||||
- [LeapDate](rules/LeapDate.md)
|
||||
- [LeapYear](rules/LeapYear.md)
|
||||
- [MaxAge](rules/MaxAge.md)
|
||||
- [MinAge](rules/MinAge.md)
|
||||
- [Time](rules/Time.md)
|
||||
|
||||
## Group Validators
|
||||
|
||||
- [AllOf](rules/AllOf.md)
|
||||
- [AnyOf](rules/AnyOf.md)
|
||||
- [NoneOf](rules/NoneOf.md)
|
||||
- [OneOf](rules/OneOf.md)
|
||||
|
||||
## Regional
|
||||
|
||||
- [CountryCode](rules/CountryCode.md)
|
||||
- [CurrencyCode](rules/CurrencyCode.md)
|
||||
- [IdentityCard](rules/IdentityCard.md)
|
||||
- [LanguageCode](rules/LanguageCode.md)
|
||||
- [PostalCode](rules/PostalCode.md)
|
||||
- [SubdivisionCode](rules/SubdivisionCode.md)
|
||||
- [Tld](rules/Tld.md)
|
||||
|
||||
## Files
|
||||
|
||||
- [Directory](rules/Directory.md)
|
||||
- [Executable](rules/Executable.md)
|
||||
- [Exists](rules/Exists.md)
|
||||
- [Extension](rules/Extension.md)
|
||||
- [File](rules/File.md)
|
||||
- [Image](rules/Image.md)
|
||||
- [Mimetype](rules/Mimetype.md)
|
||||
- [Readable](rules/Readable.md)
|
||||
- [Size](rules/Size.md)
|
||||
- [SymbolicLink](rules/SymbolicLink.md)
|
||||
- [Uploaded](rules/Uploaded.md)
|
||||
- [Writable](rules/Writable.md)
|
||||
|
||||
## Banking
|
||||
|
||||
- [CreditCard](rules/CreditCard.md)
|
||||
|
||||
## Other
|
||||
|
||||
- [Base64](Base64.md)
|
||||
- [Bsn](rules/Bsn.md)
|
||||
- [Cnh](rules/Cnh.md)
|
||||
- [Cnpj](rules/Cnpj.md)
|
||||
- [Cpf](rules/Cpf.md)
|
||||
- [Domain](rules/Domain.md)
|
||||
- [Email](rules/Email.md)
|
||||
- [HexRgbColor](rules/HexRgbColor.md)
|
||||
- [Imei](rules/Imei.md)
|
||||
- [Ip](rules/Ip.md)
|
||||
- [Json](rules/Json.md)
|
||||
- [Luhn](rules/Luhn.md)
|
||||
- [MacAddress](rules/MacAddress.md)
|
||||
- [NfeAccessKey](rules/NfeAccessKey.md)
|
||||
- [Nif](rules/Nif.md)
|
||||
- [NotBlank](rules/NotBlank.md)
|
||||
- [NotOptional](rules/NotOptional.md)
|
||||
- [Pesel](rules/Pesel.md)
|
||||
- [Phone](rules/Phone.md)
|
||||
- [Pis](rules/Pis.md)
|
||||
- [Sf](rules/Sf.md)
|
||||
- [Url](rules/Url.md)
|
||||
- [Uuid](rules/Uuid.md)
|
||||
- [Vatin](rules/Vatin.md)
|
||||
- [VideoUrl](rules/VideoUrl.md)
|
||||
- [Zend](rules/Zend.md)
|
||||
|
||||
## Yes/No
|
||||
|
||||
- [No](rules/No.md)
|
||||
- [Yes](rules/Yes.md)
|
||||
|
||||
## Alphabetically
|
||||
|
||||
- [Age](rules/Age.md)
|
||||
- [AllOf](rules/AllOf.md)
|
||||
- [Alnum](rules/Alnum.md)
|
||||
- [Alpha](rules/Alpha.md)
|
||||
- [AlwaysInvalid](rules/AlwaysInvalid.md)
|
||||
- [AlwaysValid](rules/AlwaysValid.md)
|
||||
- [AnyOf](rules/AnyOf.md)
|
||||
- [ArrayType](rules/ArrayType.md)
|
||||
- [ArrayVal](rules/ArrayVal.md)
|
||||
- [Attribute](rules/Attribute.md)
|
||||
- [Base](rules/Base.md)
|
||||
- [Base64](Base64.md)
|
||||
- [Between](rules/Between.md)
|
||||
- [BoolType](rules/BoolType.md)
|
||||
- [BoolVal](rules/BoolVal.md)
|
||||
- [Bsn](rules/Bsn.md)
|
||||
- [Call](rules/Call.md)
|
||||
- [CallableType](rules/CallableType.md)
|
||||
- [Callback](rules/Callback.md)
|
||||
- [Charset](rules/Charset.md)
|
||||
- [Cnh](rules/Cnh.md)
|
||||
- [Cnpj](rules/Cnpj.md)
|
||||
- [Cntrl](rules/Cntrl.md)
|
||||
- [Consonant](rules/Consonant.md)
|
||||
- [Contains](rules/Contains.md)
|
||||
- [Countable](rules/Countable.md)
|
||||
- [CountryCode](rules/CountryCode.md)
|
||||
- [Cpf](rules/Cpf.md)
|
||||
- [CreditCard](rules/CreditCard.md)
|
||||
- [CurrencyCode](rules/CurrencyCode.md)
|
||||
- [Date](rules/Date.md)
|
||||
- [DateTime](rules/DateTime.md)
|
||||
- [Digit](rules/Digit.md)
|
||||
- [Directory](rules/Directory.md)
|
||||
- [Domain](rules/Domain.md)
|
||||
- [Each](rules/Each.md)
|
||||
- [Email](rules/Email.md)
|
||||
- [EndsWith](rules/EndsWith.md)
|
||||
- [Equals](rules/Equals.md)
|
||||
- [Even](rules/Even.md)
|
||||
- [Executable](rules/Executable.md)
|
||||
- [Exists](rules/Exists.md)
|
||||
- [Extension](rules/Extension.md)
|
||||
- [Factor](rules/Factor.md)
|
||||
- [FalseVal](rules/FalseVal.md)
|
||||
- [Fibonacci](rules/Fibonacci.md)
|
||||
- [File](rules/File.md)
|
||||
- [FilterVar](rules/FilterVar.md)
|
||||
- [Finite](rules/Finite.md)
|
||||
- [FloatType](rules/FloatType.md)
|
||||
- [FloatVal](rules/FloatVal.md)
|
||||
- [Graph](rules/Graph.md)
|
||||
- [GreaterThan](rules/GreaterThan.md)
|
||||
- [HexRgbColor](rules/HexRgbColor.md)
|
||||
- [INSTALL](installation.md)
|
||||
- [Identical](rules/Identical.md)
|
||||
- [IdentityCard](rules/IdentityCard.md)
|
||||
- [Image](rules/Image.md)
|
||||
- [Imei](rules/Imei.md)
|
||||
- [In](rules/In.md)
|
||||
- [Infinite](rules/Infinite.md)
|
||||
- [Instance](rules/Instance.md)
|
||||
- [IntType](rules/IntType.md)
|
||||
- [IntVal](rules/IntVal.md)
|
||||
- [Ip](rules/Ip.md)
|
||||
- [IterableType](rules/IterableType.md)
|
||||
- [Json](rules/Json.md)
|
||||
- [Key](rules/Key.md)
|
||||
- [KeyNested](rules/KeyNested.md)
|
||||
- [KeySet](rules/KeySet.md)
|
||||
- [KeyValue](rules/KeyValue.md)
|
||||
- [LanguageCode](rules/LanguageCode.md)
|
||||
- [LeapDate](rules/LeapDate.md)
|
||||
- [LeapYear](rules/LeapYear.md)
|
||||
- [Length](rules/Length.md)
|
||||
- [LessThan](rules/LessThan.md)
|
||||
- [Lowercase](rules/Lowercase.md)
|
||||
- [Luhn](rules/Luhn.md)
|
||||
- [MacAddress](rules/MacAddress.md)
|
||||
- [Max](rules/Max.md)
|
||||
- [Mimetype](rules/Mimetype.md)
|
||||
- [Min](rules/Min.md)
|
||||
- [MinAge](rules/MinAge.md)
|
||||
- [Multiple](rules/Multiple.md)
|
||||
- [Negative](rules/Negative.md)
|
||||
- [NfeAccessKey](rules/NfeAccessKey.md)
|
||||
- [Nif](rules/Nif.md)
|
||||
- [No](rules/No.md)
|
||||
- [NoWhitespace](rules/NoWhitespace.md)
|
||||
- [NoneOf](rules/NoneOf.md)
|
||||
- [Not](rules/Not.md)
|
||||
- [NotBlank](rules/NotBlank.md)
|
||||
- [NotEmpty](rules/NotEmpty.md)
|
||||
- [NotOptional](rules/NotOptional.md)
|
||||
- [NullType](rules/NullType.md)
|
||||
- [Number](rules/Number.md)
|
||||
- [NumericVal](rules/NumericVal.md)
|
||||
- [ObjectType](rules/ObjectType.md)
|
||||
- [Odd](rules/Odd.md)
|
||||
- [OneOf](rules/OneOf.md)
|
||||
- [Optional](rules/Optional.md)
|
||||
- [PerfectSquare](rules/PerfectSquare.md)
|
||||
- [Pesel](rules/Pesel.md)
|
||||
- [Phone](rules/Phone.md)
|
||||
- [PhpLabel](rules/PhpLabel.md)
|
||||
- [Pis](rules/Pis.md)
|
||||
- [Positive](rules/Positive.md)
|
||||
- [PostalCode](rules/PostalCode.md)
|
||||
- [PrimeNumber](rules/PrimeNumber.md)
|
||||
- [Printable](rules/Printable.md)
|
||||
- [Punct](rules/Punct.md)
|
||||
- [Readable](rules/Readable.md)
|
||||
- [Regex](rules/Regex.md)
|
||||
- [ResourceType](rules/ResourceType.md)
|
||||
- [Roman](rules/Roman.md)
|
||||
- [ScalarVal](rules/ScalarVal.md)
|
||||
- [Sf](rules/Sf.md)
|
||||
- [Size](rules/Size.md)
|
||||
- [Slug](rules/Slug.md)
|
||||
- [Space](rules/Space.md)
|
||||
- [StartsWith](rules/StartsWith.md)
|
||||
- [StringType](rules/StringType.md)
|
||||
- [StringVal](rules/StringVal.md)
|
||||
- [SubdivisionCode](rules/SubdivisionCode.md)
|
||||
- [Subset](rules/Subset.md)
|
||||
- [SymbolicLink](rules/SymbolicLink.md)
|
||||
- [Time](rules/Time.md)
|
||||
- [Tld](rules/Tld.md)
|
||||
- [TrueVal](rules/TrueVal.md)
|
||||
- [Type](rules/Type.md)
|
||||
- [Uploaded](rules/Uploaded.md)
|
||||
- [Uppercase](rules/Uppercase.md)
|
||||
- [Url](rules/Url.md)
|
||||
- [Uuid](rules/Uuid.md)
|
||||
- [Vatin](rules/Vatin.md)
|
||||
- [Version](rules/Version.md)
|
||||
- [VideoUrl](rules/VideoUrl.md)
|
||||
- [Vowel](rules/Vowel.md)
|
||||
- [When](rules/When.md)
|
||||
- [Writable](rules/Writable.md)
|
||||
- [Xdigit](rules/Xdigit.md)
|
||||
- [Yes](rules/Yes.md)
|
||||
- [Zend](rules/Zend.md)
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue