Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/walkor/validation

The most awesome validation engine ever created for PHP
https://github.com/walkor/validation

Use Composer "--ignore-platform-reqs" on 7.3 build

Currently the build is failing because "friendsofphp/php-cs-fixer" does
not support PHP 7.3, but...

4017e5aaa291edaf3325fdd1aef38b673fba8580 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Exists" rule

Co-authored-by: Henrique Moody <[email protected]>

515b23e02f98d04da806ee35838c5c6d5a7b13b1 authored over 6 years ago by William Espindola <[email protected]>
Update composer.json

Suggest friendsofphp/php-cs-fixer instead of fabpot/php-cs-fixer which is no longer maintained.

fca464615e4a837a7c211b78530d4828cbe86236 authored over 6 years ago by Mecit <[email protected]>
Apply contribution guidelines to "Unique" rule

Signed-off-by: Paul Karikari <[email protected]>

97e94cafccf9d028bf8b3017b70573090c8f94f4 authored over 6 years ago by paul karikari <[email protected]>
Apply contribution guidelines to "CurrencyCode" rule

Also makes the rule case-sensitive since that is how ISO 4217
shows the currency codes.

Co-auth...

a463f8ab2d0c2a169ee97b9324b5df95ea87c49a authored over 6 years ago by William Espindola <[email protected]>
Add support to Countable type for ComparisonHelper

Signed-off-by: Emmerson Siqueira <[email protected]>

6124176c892109c2c637d96ae12ded5cbb21206d authored over 6 years ago by Emmerson Siqueira <[email protected]>
Apply contribution guidelines to "TrueVal" rule

Also add integration test for TrueVal rule.

Signed-off-by: Paul Karikari <[email protected]>

8aa6426ab1c834ea7a97fa5a81260ecda3715f39 authored over 6 years ago by paul karikari <[email protected]>
Apply contribution guidelines to "Tld"

Also check if input is scalar before validation.

Signed-off-by: Paul Karikari <paulkarikari1@gm...

8573d5f0646efc8616110a9f4cfa9ef72abc3800 authored over 6 years ago by paul karikari <[email protected]>
Apply contribution guidelines to "CreditCard" rule

Co-Authored-By: Henrique Moody <[email protected]>

8bd7428fe1621fe1c7933250647dea8e2fed4288 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Type" rule

Also add integration test for Type rule.

Signed-off-by: Paul Karikari <[email protected]>...

5a326b6c976451fc56de5107516afe1fb47b3dbf authored over 6 years ago by paul karikari <[email protected]>
Apply contribution guidelines to "CountryCode" rule

The "AbstractSearcher" already does most of the job that "CountryCode"
was doing, so using it as...

a79e7021739dd0efb6e718710bb4c1c1106148df authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Cnpj" rule

527553ce9991244fc82c188fc06706636b43b190 authored over 6 years ago by William Espindola <[email protected]>
Update documentation with code that works

Some codes in the documentation were not code that actually works which
can lead to some confusi...

9f15c6b6d8dccc995b5676dc02569eeb8862e8ad authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Charset" rule

Also change the constructor of the rule to accept charsets as arguments
instead of being either ...

8272f43207f0005b04ca406e33208057952e2f73 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Cnh" rule

Co-Authored-By: Henrique Moody <[email protected]>

b507d928c10c528a5087dd6f513f624b3854667c authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Callback" rule

Co-Authored-By: Henrique Moody <[email protected]>

9b4c4ddb4bf2ee418ae667a1b27e541cbaaabda6 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "FilterVar" rule

Signed-off-by: Henrique Moody <[email protected]>

12555325013b6c12a17680b3248a885c8adf6da9 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Url" rule

Also fix a type in the exception message of the "Url" rule.

Signed-off-by: Henrique Moody <henr...

8c41838abe82ca7996e0df83f76e0c174c13b810 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Bsn" rule

99466513b2eb50af96ff0c14e35170d03d06db75 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "BoolVal" rule

Co-Authored-By: Henrique Moody <[email protected]>

68b3f207f872d72908401202a79849b34257c1e1 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Base64" rule

Co-Authored-By: Henrique Moody <[email protected]>

0010ffffb5cde1b78e9d40978445a02e0622958a authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Base" rule

Also create a default template for the BaseException.

Co-Authored-By: Henrique Moody <henriquem...

f817655a82fd2107b126d45f34bd7f50920aff2f authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "PrimeNumber" rule

Co-Authored-By: Henrique Moody <[email protected]>

6e26ba8837154898fd44ee5fffbc4c3fe9aab27f authored over 6 years ago by Ismael Elias <[email protected]>
Apply contribution guidelines to "NoWhitespace" rule

Co-Authored-By: Henrique Moody <[email protected]>

1e89dc26eaac9f953c112faf61717665ddbf2e30 authored over 6 years ago by Danilo Benevides <[email protected]>
Apply contribution guidelines to "Email" rule

Co-Authored-By: Henrique Moody <[email protected]>
Signed-of-by: Paul Karikari <paulkarika...

1bde3a8e49abc0e1bbd6a5df01a440de20dd0d6a authored over 6 years ago by paul karikari <[email protected]>
Merge branch '1.1'

35a43cdb5f1ff7d6e28cd3552bf16d39b469343f authored over 6 years ago by Henrique Moody <[email protected]>
Added .studio tld

https://icannwiki.org/.studio

700e23777ff6954babf55eed72a286792f594648 authored over 6 years ago by Radoslaw Wesolowski <[email protected]>
Apply contribution guidelines to "Negative" rule

Also does not allow validation of non-numeric values.

Co-Authored-By: Henrique Moody <henriquem...

c2f6876e4fd79fc639c8d0454b54592f648302ea authored over 6 years ago by Ismael Elias <[email protected]>
Apply contribution guidelines to "Odd" rule

Also does not allow validation of non-numeric values.

Co-Authored-By: Henrique Moody <henriquem...

5fc04558d6a3b428399785ccebd2ecbbe1b64721 authored over 6 years ago by Danilo Benevides <[email protected]>
Apply contribution guidelines to "Positive" rule

Also does not allow validation of non-numeric values.

Co-Authored-By: Henrique Moody <henriquem...

72933a718f6c0ca073e3221cb4a9403243809462 authored over 6 years ago by Ismael Elias <[email protected]>
Apply contribution guidelines to "FloatVal" rule

Co-Authored-By: Henrique Moody <[email protected]>

c422dc39e4a4dd0f256f231374ce94cae3e3b319 authored over 6 years ago by Danilo Benevides <[email protected]>
Apply contribution guidelines to "Lowercase" rule

Co-Authored-By: Henrique Moody <[email protected]>

b29bdbd111d92cfbda5c915abe863129f2237d4b authored over 6 years ago by Danilo Benevides <[email protected]>
Apply contribution guidelines to "AlwaysInvalid" rule

Co-Authored-By: Henrique Moody <[email protected]>

36be04c5206ebc2323f51f0a30c8efc19e2c9256 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "AlwaysValid" rule

Co-Authored-By: Henrique Moody <[email protected]>

49131c87a766620b8f4fd667367564e5a6105067 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Cpf" rule

Co-Authored-By: Henrique Moody <[email protected]>

b6e3fc6ac084b8fbc8a01b9b66db7fe7a0a0236f authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Countable" rule

Co-Authored-By: Henrique Moody <[email protected]>

8f47cc37d637a3e73eb66cd793ed3187d624c2e9 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Contains" rule

Co-Authored-By: Henrique Moody <[email protected]>

4976fbaf48cf135bee5aa28312b81149041ba8b9 authored over 6 years ago by William Espindola <[email protected]>
Apply contribution guidelines to "Uppercase" rule

Also make sure that "Uppercase" only accepts strings.

Co-Authored-By: Henrique Moody <henriquem...

d1932b2e7fd1a195fb5d7180d8c5b74e7dd5fcb7 authored over 6 years ago by Danilo Benevides <[email protected]>
Apply contribution guidelines to "IterableType" rule

Signed-off-by: Henrique Moody <[email protected]>

df9ae14100c5e13a49e0f6e0ec93bd0a65851f93 authored over 6 years ago by Henrique Moody <[email protected]>
Add type hinting and return type to "setTemplate"

Signed-off-by: Henrique Moody <[email protected]>

2dc8e72844f12ecd9170600781292e07d2bee7e4 authored over 6 years ago by Henrique Moody <[email protected]>
Add return type to "reportError()"

Signed-off-by: Henrique Moody <[email protected]>

0e52f94c3472253116c0d27e39e164caac136924 authored over 6 years ago by Henrique Moody <[email protected]>
Remove dead code "AbstractInterval"

Signed-off-by: Emmerson Siqueira <[email protected]>

fa222e04c4cb5760dbdc0930de0c5f398ce87f05 authored over 6 years ago by Emmerson Siqueira <[email protected]>
Make "Min" always inclusive

Since the rule "GreaterThan" was created, there is no reason to allow
"Min" to not be inclusive....

24c2ba8faa0026c18457258fabbd802451151580 authored over 6 years ago by Henrique Moody <[email protected]>
Rename "MaximumAge" and "MinimumAge" rules

Those rules were renamed to keep consistent with other rules such as
'Max' and 'Min'.

Signed-of...

9eb159f3d96aaa87652110a968a6b2b057e195fe authored over 6 years ago by Emmerson Siqueira <[email protected]>
Rename 'Prnt' rule to 'Printable'

This changes the rule name in order to be more descriptive and explicit
(avoid abbreviation). It...

271ddd1fe0a9ab7a23a9371a6cccb110596516b2 authored over 6 years ago by Emmerson Siqueira <[email protected]>
Make "Max" always inclusive

Since the rule "LessThan" was created, there is no reason to allow "Max"
to not be inclusive.

A...

6351f7a0924fb4ae18aa7150ad7acf3d26a0dbbb authored over 6 years ago by Henrique Moody <[email protected]>
Make "Between" always inclusive

Generally speaking it makes more sense to have it always inclusive. Even
though the word "betwee...

da6abf4bddf08aa55c3151ce6aed0b1a711d3f29 authored over 6 years ago by Henrique Moody <[email protected]>
Create "GreaterThan" rule

Signed-off-by: Henrique Moody <[email protected]>

9b20d6dae24a9a4e7c2df1e0cbacf28ab0c79c8b authored over 6 years ago by Henrique Moody <[email protected]>
Create "LessThan" rule

Signed-off-by: Henrique Moody <[email protected]>

9d0d750a181937b3364e23347506e4ae9d2a0bb9 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Attribute" rule

Signed-off-by: Emmerson Siqueira <[email protected]>

0a031649a871ff89f6dcf55aa004e53070e2e414 authored over 6 years ago by Emmerson Siqueira <[email protected]>
Apply contribution guidelines to "Even" rule

Also add an extra validation to the rule, not allowing non-integers to
be considered as even num...

51ec5e1b95844fadf728ae629b502535724c6fa7 authored over 6 years ago by paul karikari <[email protected]>
Remove unused exception classes

Signed-off-by: Henrique Moody <[email protected]>

3d2136e2adcaa85e45499235364b70e15b9ad5c7 authored over 6 years ago by Henrique Moody <[email protected]>
Make getMessages() return the names or ids as keys

This method change the behavior of "getMessages()" by changin the keys
of its return to the "id"...

71ecea32e68a16bef410d76558a9ce74c4da680e authored over 6 years ago by Henrique Moody <[email protected]>
Use getMessage() instead of getMainMessage()

Signed-off-by: Henrique Moody <[email protected]>

c26db7287fe0989c117fb04b41b578bd2d58fff1 authored over 6 years ago by Henrique Moody <[email protected]>
Remove "Interface" suffix from exceptions

Signed-off-by: Henrique Moody <[email protected]>

d7ebb8c1a71b2572c30082198101a8533f4baef1 authored over 6 years ago by Henrique Moody <[email protected]>
Ensure names are always string

Signed-off-by: Henrique Moody <[email protected]>

167c97bb8306e5dfde644ee9fa0d5c3bc966d8ab authored over 6 years ago by Henrique Moody <[email protected]>
Declare visibility for constants

Signed-off-by: Henrique Moody <[email protected]>

5d0ecabfdc60c7becb798f28f9fd9d399775b976 authored over 6 years ago by Henrique Moody <[email protected]>
Remove findMessages() from NestedValidationException

64ec329663af8d26693e8ca68695bc03a8039594 authored over 6 years ago by Henrique Moody <[email protected]>
Do not overwrite method configure()

Signed-off-by: Henrique Moody <[email protected]>

9c814983958e0cd7d8e8d7587c52fc7e990c7802 authored over 6 years ago by Henrique Moody <[email protected]>
Convert message keys to string

Signed-off-by: Henrique Moody <[email protected]>

d85668c359b558332a56ad6d240c4f992fea8391 authored over 6 years ago by Henrique Moody <[email protected]>
Fix wrong templates

The "MinimumAge" exception should use the "{{ name }}" placeholder
instead of the "{{ input }}" ...

aa4b111c9089fab0b0432c7d0755b84127281660 authored over 6 years ago by Henrique Moody <[email protected]>
Remove method stringify from ValidationException

Signed-off-by: Henrique Moody <[email protected]>

0e81792ec86a918df5f2b6b1aff5be4907930e14 authored over 6 years ago by Henrique Moody <[email protected]>
Refactor ValidationException

Make the ValidationException a little bit less mutable than before. All
its dependencies are now...

8c529c433e44714c28183754ea59e7aa5c059e07 authored over 6 years ago by Henrique Moody <[email protected]>
Run PHP Coding Standards Fixer on Travis

If after executing php-cs-fixer any file must be changed the build
should not pass.

Signed-off-...

f7a4180541dac4eaa7e426eaa3e16173527dda46 authored over 6 years ago by Henrique Moody <[email protected]>
Fix coding standards

Signed-off-by: Henrique Moody <[email protected]>

bc472a6f0ea6df5afcc1457820977eba4f889b13 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "ObjectType" rule

Signed-off-by: Henrique Moody <[email protected]>

e203f8aec5e5617261d23f2794b4cdc0f2daf146 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "CallableType" rule

Signed-off-by: Henrique Moody <[email protected]>

34d42a0d708ced371f42508efe2fa06d02dacd12 authored over 6 years ago by Henrique Moody <[email protected]>
Merge branch '1.1'

47eaea6f28e7b934ca1b5f46f0c0daee7931d1ab authored over 6 years ago by Henrique Moody <[email protected]>
Update type parameters for Validator doc blocks

The "@param" tag uses phpdoc types. However the "@method" tag uses PHP's
type declarations. Ther...

020ea1ebb5dc626bb7f1958ff49f69172ff589cc authored over 6 years ago by Tim Bond <[email protected]>
Update NestedValidationException doc block

4c996258a1cb96b624b1b95d82e47bc536728a39 authored over 6 years ago by Tim Bond <[email protected]>
Update French subdivision codes

df985765a6c33029954b35e2368a40dfdbeea683 authored over 6 years ago by MacFJA <[email protected]>
Revert "Elaborated API styles documentation"

This reverts commit eb2621fafe8c751eccf01f0120b28776410e6201.

cb4fb83b3e7dfd01295591961e5cc996a12f1f73 authored over 6 years ago by Henrique Moody <[email protected]>
Revert "Add link to support issues."

This reverts commit 62e1170a212e31c0b3855b003303dd7a4f4bce9f.

5c598cdce2d249ab0e60ee090dbdea61b928e9c4 authored over 6 years ago by Henrique Moody <[email protected]>
Revert "Tested and fixed documentation"

This reverts commit 4357349ff05ed480114417b6f9b2a3393ce0cc0e.

c6b6a4c425bf70ffcc8194c42d84afa5e2cd8af9 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "NotEmpty" rule

7b5a2928ff263723c7e65517e643932bad1e5655 authored over 6 years ago by Bram Van der Sype <[email protected]>
Clarify array validation

Clarify more complex array validation with an example in the
documentation.

e2677d99d9d10d537d08332552b23fcb12f91962 authored over 6 years ago by Antonio <[email protected]>
Tested and fixed documentation

Fixed concrete and builder api documentation

4357349ff05ed480114417b6f9b2a3393ce0cc0e authored over 6 years ago by Nick Lombard <[email protected]>
Add link to support issues.

Added link issues filtered by label support

62e1170a212e31c0b3855b003303dd7a4f4bce9f authored over 6 years ago by Nick Lombard <[email protected]>
Elaborated API styles documentation

Transferred documentation from issue #90 Dynamic chaining

eb2621fafe8c751eccf01f0120b28776410e6201 authored over 6 years ago by Nick Lombard <[email protected]>
Apply contribution guidelines to "ArrayVal" rule

Signed-off-by: Emmerson Siqueira <[email protected]>

2bcc164b35d067e57e0f4f6d548cbe2b8d4663bc authored almost 7 years ago by Emmerson Siqueira <[email protected]>
Apply contribution guidelines to "ResourceType" rule

Signed-off-by: Henrique Moody <[email protected]>

bfdea5b5bd7a205cec8fb8be22efd2165a13bc83 authored almost 7 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "NullType" rule

Signed-off-by: Henrique Moody <[email protected]>

ad9cab5daf0f4e97ec33bc64ab079f85dfd52628 authored almost 7 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "IntType" rule

Signed-off-by: Henrique Moody <[email protected]>

435187298ab6d965a0cb66870db56cbd5e14fdb4 authored almost 7 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "FloatType" rule

Signed-off-by: Henrique Moody <[email protected]>

ec8cb734b3abcf834412f489f8758244bad71f9d authored almost 7 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "BoolType" rule

Signed-off-by: Henrique Moody <[email protected]>

84651800628e52dc6043772c0c88dce2c171e053 authored almost 7 years ago by Henrique Moody <[email protected]>
Fix coding standards in PHPT file

8ad7b208c25166e5e1300fe8bf935dc154375c91 authored almost 7 years ago by Henrique Moody <[email protected]>
Make "Between" rule extend "AbstractEnvelop"

The "Between" rule is composed by two rules: "Min" and "Max". However it
has its specific except...

10ce811f0e6f1a99adb038232896e67c88a8595f authored almost 7 years ago by Henrique Moody <[email protected]>
Create "AbstractEnvelope" class

This abstract class is very similar to "AbstractWrapper" the difference
is that "AbstractWapper"...

e879c62f605cfa38e6e76f290f81455a23666a4a authored almost 7 years ago by Henrique Moody <[email protected]>
Use ValidationException when no exception is found

Before this change every create rule must have an exception. This commit
allows to create rules ...

04b3c78ba74eb84efbffc27111b56a9b0d4d4a5d authored almost 7 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "ArrayType" rule

ad61c49eca1c7889ed4371c71ab2858dedf7c6ca authored almost 7 years ago by Emmerson Siqueira <[email protected]>
Apply contribution guidelines to "StringType" rule

Signed-off-by: Henrique Moody <[email protected]>
Co-authored-by: Emmerson Siqueira <emmer...

2069e706b88997d2232ed5f552675d1eefbc1c52 authored almost 7 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "ScalarVal" rule

Signed-off-by: Henrique Moody <[email protected]>
Co-authored-by: Emmerson Siqueira <emmer...

848c57d5edea4efc849d4f0eb96ad4cb662189ed authored almost 7 years ago by Henrique Moody <[email protected]>
Replace fabpot/php-cs-fixer with friendsofphp/php-cs-fixer

The fapbot version is abandoned accord to packagist and suggests the
friendsofphp version.

f03a09aa2454f85ab85e079db751fb45eea77727 authored almost 7 years ago by Burhan Ali <[email protected]>
Update license to MIT

a796d9e981dd49a1bf8afd941043afec5c1be72b authored almost 7 years ago by Henrique Moody <[email protected]>
Refactor "KeySet" rule

Do not extend AllOf exception, but instead extend "AbstractWrapper".

b696070874a69eae42a564e6a5c7c9583b32aeb7 authored almost 7 years ago by Henrique Moody <[email protected]>
Refactor "Between" rule

The "Between" rule was extending the "AllOf" rule and adding "Max" and
"Min" rules to the chain....

60e3fc3740ce1ea7089c218ee801cf3f1140f288 authored almost 7 years ago by Henrique Moody <[email protected]>
Refactor rules related to age

The "Age" rule was removed because it had too many responsibilities.
Instead "MaximumAge" was cr...

8d44bc3407e89266b352fc7ceaf1ffab605fad4a authored almost 7 years ago by Henrique Moody <[email protected]>
Create "Nullable" rule

51ce465b8cc5eaa739104bb959f315b41b3d8c83 authored almost 7 years ago by Jens Segers <[email protected]>
Fix coding standards

These are the changes after running the last version of PHP-CS-Fixer.

92a8ab13cf6bef1dde3a79ea58819768438a73c7 authored almost 7 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "DateTime" rule

This commit also makes some changes in how the `DateTime` rule behaves,
by not accepting `DateTi...

fb2ebaf5d68a044d66128344afb4b9339d022fec authored almost 7 years ago by Henrique Moody <[email protected]>