Skip to content

Commit 4a546d2

Browse files
add integer rule in readme
1 parent 666d1a3 commit 4a546d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ Below is list of all available validation rules
287287
* [digits](#rule-digits)
288288
* [digits_between](#rule-digits_between)
289289
* [url](#rule-url)
290+
* [integer](#rule-integer)
290291
* [ip](#rule-ip)
291292
* [ipv4](#rule-ipv4)
292293
* [ipv6](#rule-ipv6)
@@ -513,6 +514,10 @@ $validation = $validator->validate($inputs, [
513514
> For common URL scheme and mailto, we combine `FILTER_VALIDATE_URL` to validate URL format and `preg_match` to validate it's scheme.
514515
Except for JDBC URL, currently it just check a valid JDBC scheme.
515516

517+
<a id="rule-integer"></a>
518+
#### integer
519+
The field under this rule must be integer.
520+
516521
<a id="rule-ip"></a>
517522
#### ip
518523

0 commit comments

Comments
 (0)