464 Commits

Author SHA1 Message Date
hide_d
802c4406b3 Fix grammatical mistakes 2018-03-30 22:39:45 +09:00
hide_d
b54a25f7a9 Added Korean 2018-03-30 22:33:10 +09:00
Willem Wollebrants
b6589e85ea
Strict integer rule
Fixed strict integer rule and added more integer unit tests
2018-03-29 20:57:51 +02:00
Willem Wollebrants
c56bf573f2
Merge pull request #241 from realjay007/stop-on-first-fail
Added option to stop validation when a rule is failed
2018-03-08 16:48:01 +01:00
misantron
48dcdc7248 Merge remote-tracking branch 'remotes/upstream/master' into validators-patch 2018-03-05 22:21:09 +03:00
Julius Ijie
4103c8bd40 Forced stopOnFirstFail parameter to bool 2018-02-23 15:59:30 +01:00
Julius Ijie
8636fed8f5 Removed boolean type declaration only available on PHP7 2018-02-23 15:55:45 +01:00
Julius Ijie
6837c9dfab Added option to stop validation when a rule is failed 2018-02-23 15:25:35 +01:00
Vance Lucas
4b32e6067a
Update composer license SPDX 2018-02-10 16:02:11 -06:00
Willem Wollebrants
013672dfce
Merge pull request #231 from piotr-cz/patch-1
Fix typo in docblock
2018-02-10 14:08:48 +01:00
Willem Wollebrants
59f04de714
Merge pull request #238 from thinkjson/master
Documentation: numeric array validation example
2018-02-10 14:08:25 +01:00
Willem Wollebrants
241c456e37
Merge pull request #239 from dgvirtual/master
Translation to Lithuanian
2018-02-10 14:07:24 +01:00
Willem Wollebrants
8abb9b7220
Merge pull request #237 from mangopeaches/nested-equals-different
added nested array support for validateEquals and validateDifferent
2018-02-07 17:35:13 +01:00
Donatas Glodenis
fb8f89a519
Translation to Lithuanian 2018-02-07 15:33:59 +00:00
Tom Breese
19a1e123bd updating tests for 5.3 compatible arrays 2018-02-06 23:10:20 -05:00
Tom Breese
32dec57f69 adding nested different both unser required test 2018-02-06 23:05:25 -05:00
Tom Breese
06d1740c32 adding tests for nulls/not set values for nested and not nested equals and different methods 2018-02-06 23:02:03 -05:00
Willem Wollebrants
ef412d1160
Merge pull request #232 from jabarihunt/improved-email-validator
Add emailDNS validator
2018-02-06 08:34:20 +01:00
Mark Cahill
fd1b55ad21 Fulfilling documentation request for numeric array validation 2018-02-05 07:15:00 -05:00
Tom Breese
7c94b2ae5a added support for nested arrays in validateEquals and validateDifferent validation methods 2018-02-04 13:24:47 -05:00
Jabari Hunt
11dc3a7850
Merge pull request #1 from willemwollebrants/improved-email-validator
Improved email validator
2018-01-31 10:30:06 -06:00
Willem Wollebrants
f8e69683af add emailDNS validator to documentation 2018-01-31 16:20:58 +01:00
Willem Wollebrants
7dcc8a5089 add test for new emailDNS validator 2018-01-31 16:19:05 +01:00
Jabari
8603b2bec3 Added idn_to_ascii() with a check to make sure the function itself exists as well as a check for a required constant that it needs to function. 2018-01-05 22:28:47 -06:00
Jabari Hunt
28ef275cde Restored the original validateEmail() method. Created a new method called validateEmailDNS() that validates both the email address itself (using the ValidateEmail() method) as well as the domain name in the email address. 2018-01-01 15:11:21 -06:00
Jabari Hunt
a49bad3ed8 Merge remote-tracking branch 'origin' into improved-email-validator 2018-01-01 14:10:49 -06:00
Willem Wollebrants
1712b04f16
Merge pull request #235 from pelmered/master
Added Swedish translation file
2017-12-20 09:03:40 +01:00
Willem Wollebrants
7804f85ea8
Merge pull request #233 from shitoudev/patch-1
Update zh-cn.php
2017-12-20 09:03:06 +01:00
Peter elmered
ac79ecd1de Added Swedish translation 2017-12-19 18:36:40 +01:00
zhenwen
c0bf6b75d8
Update zh-cn.php 2017-12-14 11:17:43 +08:00
Jabari Hunt
55154359dc Fixed a typo that was introduces in an unrelated comment. 2017-12-13 16:06:31 -06:00
Jabari Hunt
255384baa8 Made the domain check an option (via third method param). 2017-12-13 14:52:24 -06:00
Jabari Hunt
ae7716c900 Improved the email validator by making sure the domain name is valid. 2017-12-13 12:30:45 -06:00
Piotr
2438da6a99
Fix typo in docblock 2017-12-08 16:00:16 +01:00
Willem Wollebrants
42637ed954
Merge pull request #230 from vlucas/fixTest
Make testRequiredAllowEmpty() test 2 different usages
2017-12-02 21:56:17 +01:00
Willem Wollebrants
d1563d520f Make sure testRequiredAllowEmpty() tests 2 different usages for required rule 2017-12-02 21:28:13 +01:00
Vance Lucas
290113fac0
Merge pull request #225 from gabriel-caruso/phpunit
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
2017-11-15 10:35:54 -06:00
Gabriel Caruso
14a467ba24 Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2017-11-11 02:28:10 -02:00
misantron
36404a83b7 Merge branch 'master' into validators-patch 2017-11-01 23:43:09 +03:00
Willem Wollebrants
87775d7626
Merge pull request #224 from vlucas/issue223
remove unused parameter for required rule
v1.4.2
2017-10-31 00:15:06 +01:00
Willem Wollebrants
890cf6a104 let's see if we can keep 5.3 still 2017-10-30 20:02:29 +01:00
Willem Wollebrants
3da6518e38 time to no longer test for php 5.3 2017-10-30 19:49:58 +01:00
Willem Wollebrants
9726d0f835 remove unused parameter for required rule 2017-10-30 19:44:17 +01:00
misantron
b0ddfb3a37 Merge remote-tracking branch 'origin/validators-patch' into validators-patch
# Conflicts:
#	src/Valitron/Validator.php
2017-10-26 23:11:06 +03:00
misantron
d9a466b833 Array contains and unique validators added, code style fixes 2017-10-26 23:09:45 +03:00
Dennis Meckel
eb436a382f Fixed strict integer rule and added more integer unit tests 2017-10-13 19:39:59 +02:00
Willem Wollebrants
20a9c2d604 Merge pull request #218 from vlucas/issue208
validate fields that are required, but may have empty or null values. Handles #208
v1.4.1
2017-08-28 22:06:05 +02:00
Willem Wollebrants
9a45f79b58 Explain required-rule parameter 2017-08-28 21:59:40 +02:00
Willem Wollebrants
4cc030c68a validate fields that are required, but may have empty or null values. #208 2017-08-28 21:52:21 +02:00
Willem Wollebrants
db089ab271 Merge pull request #217 from vlucas/iss214
Remove (0-9) from default integer message #214
2017-08-28 08:50:38 +02:00