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

Remove subdivision code rules per country

There is no much benefit from having individual rules for each country's
subdivision, quite the ...

718bacad046b5f636c33ab0f9d37bca4dbacb149 authored over 5 years ago by Henrique Moody <[email protected]>
Improve message when nested "Not" rules fail

When using nested "Not" and "AllOf" rules Validation does not fetch the
message of the rule that...

1b844763a943d15c71a1a83adf6e5ef032037281 authored over 5 years ago by Henrique Moody <[email protected]>
Improve tests of the "Optional" rule

PHPT tests are expensive, having all and only the necessary tests in one
single file make more s...

344b00cc07a58b8e52a91a348d8e969b2a7c5f52 authored over 5 years ago by Henrique Moody <[email protected]>
Make "NotEmpty" a final class

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

51f157605d9a549ea3b3c3ca4701029dbd695229 authored over 5 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "No" rule

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

7b53d54931aaee5195905594cd09e1898d2d0a01 authored over 5 years ago by Henrique Moody <[email protected]>
Make some improvements to the "Roman" rule

The rule validates any empty string as a valid input, its exception
message states Roman with lo...

22f3f80f4c9de361d4ea931708f0b8a00b043f1b authored over 5 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Xdigit" rule

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

cb528ae612f7040277594868fa09c41c03bc8c0e authored over 5 years ago by Henrique Moody <[email protected]>
Allow hex RGB colors with 3 integers

This commit will also apply the contribution guidelines to the rule and
improve its documentati...

18ce48371cca4fa13e6a811774f7a0b77bea8ac7 authored over 5 years ago by Henrique Moody <[email protected]>
Fix the case of the "@inheritDoc" tag

According to the official documentation [1] the correct way of writing
the "inheritDoc" tag is w...

6040ddee425c687e6fa907c6f9d29e91c78f6971 authored over 5 years ago by Henrique Moody <[email protected]>
Refactor "Domain" rule

The "Domain" rule duplicates a lot of its logic among the methods
"check()," "validate()," and "...

cd2390a9b0df80c20c750d42ece2cfdc45f70c53 authored over 5 years ago by Henrique Moody <[email protected]>
Merge branch '1.1'

81ce5b090b807e76c8ab81fae7ffd73a6d235675 authored over 5 years ago by Henrique Moody <[email protected]>
Fix Irish postal code validation

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

9bafee191d9c560827105a849e2b29d8446f0f6f authored over 5 years ago by Daniel Alt <[email protected]>
Add inclusive messages to LengthException

9dca4bde6047e08c3ec168ddb896cdb9acd86647 authored over 5 years ago by Mazen Touati <[email protected]>
Fix bug to validate "01234567890" input in CPF rule

f2469392219beb382a158d323992b1e76f7b9ef0 authored over 5 years ago by Paulo Dias <[email protected]>
Refactor "Zend" rule

- Only create objects that are instantiable.

- Validate if validator is a valid Zend Validator ...

166501804f20c6c3fdcf2b7d0190b8c41dec4930 authored almost 6 years ago by Henrique Moody <[email protected]>
Uncomment comented code in "identityCard.phpt"

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

df5cb1e6d2192a9afd1c980f955695d61d633fd9 authored almost 6 years ago by Henrique Moody <[email protected]>
Unify integration tests

PHPT files are amazing, but they are also expensive to execute. Having
just one single file runn...

8bb49d8ab28919066d2cf4a087d9935abdaf8994 authored almost 6 years ago by Henrique Moody <[email protected]>
Move integration test of "IntVal" to another directory

The integration tests for rules should stay in
"tests/integration/rules".

Signed-off-by: Henriq...

d8f43589dcee98077ec516610819cd45665e4ac5 authored almost 6 years ago by Henrique Moody <[email protected]>
Remove extra tests for "Bsn" rule

There is already a test for this rule, therefore there is no need for
those 3 extra ones.

Signe...

6bcfba29d2e5371d5c4db97fcdb3a479c4028462 authored almost 6 years ago by Henrique Moody <[email protected]>
Refactor "Sorted" rule

The sorted rule accepts a callback on its constructor that may be used
to filter values from ins...

1f6c821fb624fca06529385ab8d18f193fb3257a authored almost 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Vowel" rule

After writing the integration tests of the "Vowel" rule we noticed that
it is generating extra d...

b98a7ac89b29eaa3fdc95a415c284594b01541f7 authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Size" rule

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

5444ab5b0aed7a35ef4b0cd7ad4271645be202c1 authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "StartsWith" rule

After writing the integration tests of the "StartsWith" rule we noticed
that it is generating ex...

18bdd399d772b4bd7fff22f814ad2b0263765a88 authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Space" rule

After writing the integration tests of the "Space" rule we noticed that
it is generating extra d...

d2c4912582ced6e76817dbd8c1c3abc36e8be05c authored almost 6 years ago by Danilo Correa <[email protected]>
Make classes final

The rules "AllOf," "NotEmpty," and "Xdigit" cannot be final because
other rules extend them.

Si...

b340b74cfdcb5d4cb7cd72634aef8cde36dbab30 authored almost 6 years ago by Henrique Moody <[email protected]>
Update the Coding Standards

This commit will add a couple of rules that we already use but also
introduce new ones and make ...

c60ca7937b90fe0caa847a1ad93e6f5fd5cdbc45 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Slug" rule

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

d63983e2d2eb8c96d20e4a9c49c82bb29f58f380 authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Phone" rule

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

e62d4e145d2a7f257490b97b448c1f95cae1846a authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "PostalCode" rule

This commit will also remove the second argument from the constructor of
the rule because there ...

21aa8eec62f9ac3367c5df4a9e5b84c663bb93b4 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "NfeAccessKey" rule

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

9f9b33a36cc6e642333279cc960c1c0ae85810cd authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Punct" rule

After writing the integration tests of the "Punct" rule we noticed that
it is generating extra d...

540c0a4a177d641a975229546915b8ffd2c7b93b authored almost 6 years ago by Danilo Correa <[email protected]>
Create "Iban" rule

The validation procedure is adhering to what is described in Wikipedia.

Link: https://en.wikipe...

6d3eb6afeda66638b72266653d52866642a57557 authored almost 6 years ago by Mazen Touati <[email protected]>
Fix NoWhitespaceException typo

3723a124c898769cc0a0a247b5f148a4b8fe08f9 authored almost 6 years ago by Mazen Touati <[email protected]>
Make the ranges of emoji more accurate

The new ranges are now 100% accurate by not including any Unicode point
that is not defined into...

a8cb87217fee65ee642a9acf3efdf6a4c48b003b authored almost 6 years ago by Mazen Touati <[email protected]>
Fix coding standard of code in the "Feature guide"

120d924d8d7e46457984e55b3a2f620ff4dfb0cd authored almost 6 years ago by bagus erlang <[email protected]>
Fix coding standard of a code in "concrete-api.md"

ce0d65834065cb84ab34e5a93d9ed1b0ffad8530 authored almost 6 years ago by bagus erlang <[email protected]>
Apply contribution guidelines to "Graph" rule

After writing the integration tests of the "Graph" rule we noticed that
it is generating extra d...

fc433ad449d28b34b60159febe3aa5605e262711 authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Consonant" rule

After seeing the integration tests of the "Consonant" rule we noticed
that it is generating extr...

ffc349cb03700d5a73cba54e79562360f6567b70 authored almost 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Cntrl" rule

After writing the integration tests of the "Cntrl" rule we noticed that
it is generating extra d...

74c3d1acc32affb6199c938fd3ff9b0f00804e2d authored almost 6 years ago by Danilo Correa <[email protected]>
Make PHPUnit tests final

Whenever is possible it is better to declare our classes as final. The
PHPUnit tests should not ...

688fbde552599409e88aaaf761f05d75461dbabe authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn"

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

4ab037ed8793759f0155c2952925b8c165e2a9f9 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"

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

85e6af6fcd082f933b084fecb529fd13fd7b49e1 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"

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

81a77ae125270dc5d71fd1465dd3cc6c88c843ef authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.PHP.ShortList"

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

454096c4595b98f650d607c9192c8585d8fb5280 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Namespaces.UseSpacing"

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

8f41ebec8d17525bba66168cc70268fb0098eac4 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"

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

e8a50ea31bc2f008c3af4d9d3db31a015850ccd3 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"

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

99b912ff8727fde0c683c12782244407165a673f authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.ControlStructures.RequireTernaryOperator"

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

3abf64f496addedf025ee102e996fdd94a404ad6 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.ControlStructures.LanguageConstructWithParentheses"

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

e500222f5bba02ff2497a2e8fc84670002864946 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.ControlStructures.ControlStructureSpacing"

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

750cfa217ab21fa2ed333bf3ebab942e3787b2df authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Classes.TraitUseDeclaration"

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

3920f5a0e6b7f8b58bda42f641b25c6817b3a7a8 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Arrays.TrailingArrayComma"

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

6efb9db42978d1b54ffabf97eeef9fbf79c25c06 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Variables.UnusedVariable"

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

147804287b4876012f8aa8cbaa8b9f70113628d4 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking"

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

e89b32270b9889112da07ccb247a2620abe597a8 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.PHP.UselessParentheses"

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

44f4d65a3d507125d10fbee2accc4ca67bb9b03f authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Namespaces.UnusedUses"

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

751e08c9f0ac799b609eab8a80d5139cd2bfb75e authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Functions.StaticClosure"

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

880103c55f0c434768a4e2c8159c3b415d56577b authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.ControlStructures.EarlyExit"

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

d72d247ddc7f7a645666f43ea85bd6f417433e00 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.ControlStructures.AssignmentInCondition"

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

7e3bf36f8ddde0ea901b59b83f8aa867ce50214b authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants"

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

cb24cc97d27152752b541ad5d5428b880c5ddb7e authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes"

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

cc20a442a16fe2c71642d459c6808d1720531f9d authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"

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

cbe484a4d337725514844832d3a57e9b18e6c5d3 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"

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

7e884cc0f45e862a8ca7da4b866a6ebc3e92630c authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "SlevomatCodingStandard.TypeHints.TypeHintDeclaration"

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

c30603759e3aae9326b62c81e7718e17d42a3eb0 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "Squiz.WhiteSpace.OperatorSpacing"

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

0e0581a9da2c1456ffbc9357e186737774577e45 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "Squiz.WhiteSpace.MemberVarSpacing"

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

8e59ec5d4ae85000a6067c04d10a2d64e7e7c946 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "Squiz.Strings.ConcatenationSpacing"

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

7e11cc00272f7fb094cac94c27f1d58204b1e4e5 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "Squiz.PHP.CommentedOutCode"

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

ee1d49a2cfc5defa76e7854b577e4cd5225e9df8 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "PEAR.WhiteSpace.ObjectOperatorIndent"

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

111b3de436b4e16c412ae535457425bf111499c4 authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "Generic.Arrays.ArrayIndent"

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

5bdffaa51b2a3b279c7f92a84ec56c350e37502b authored almost 6 years ago by Henrique Moody <[email protected]>
Apply "Generic.NamingConventions.CamelCapsFunctionName"

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

1cccfd00a055a2f1fed925ae6e1b669d81ff98a2 authored almost 6 years ago by Henrique Moody <[email protected]>
Add some code sniffs that we already use

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

0c4a2787095e29e81233058e10975c57bc9b6e32 authored almost 6 years ago by Henrique Moody <[email protected]>
Increate PHPStan level to 7

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

985b6fac253f2f422393e484fd960ba7a577124b authored almost 6 years ago by Henrique Moody <[email protected]>
Increate PHPStan level to 6

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

4519739f8ba2ef21b572162b861480c7980229cc authored almost 6 years ago by Henrique Moody <[email protected]>
Increate PHPStan level to 5

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

103a47e134987abee8ef6624bbdefb5be178dc77 authored almost 6 years ago by Henrique Moody <[email protected]>
Increate PHPStan level to 3

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

b007284857f0b30ffee496ded39c167d17ace41a authored almost 6 years ago by Henrique Moody <[email protected]>
Increase PHPStan level to 2

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

f52097075bb24a4c7142f68a179f416f3497efb1 authored almost 6 years ago by Henrique Moody <[email protected]>
Set up "squizlabs/php_codesniffer"

The tool we used to verify whether the code base has the correct coding
standard was removed [1]...

b7043b2652e375c2b4e3a7bbd8c57bea15cd7a6d authored almost 6 years ago by Henrique Moody <[email protected]>
Update paths of Composer scripts

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

2b86e5443ec9832cc531fcf70c5e8800e1ef8690 authored almost 6 years ago by Henrique Moody <[email protected]>
Create "NotEmoji" rule

The data in this commit has been gathered, scrapped, organized and
treated based on the Emoji Un...

9c7550aa439b69771d8623f2c1cc75bf05ef1ddf authored almost 6 years ago by Mazen Touati <[email protected]>
Remove PHP-CS-Fixer

It is not the first time that after a PHP-CS-Fixer upgrade our build
fails. Also, I've seemed a ...

ffec95acdad2105f40c2265ad7e05cf4e73bf971 authored almost 6 years ago by Henrique Moody <[email protected]>
Replace the usages of "--EXPECTF--" by "--EXPECT--"

The "--EXPECTF--" is supposed to be used when the output of "--FILE--"
is random. In many cases,...

fbaf78fc399fcb889278313afa49f4b3e5137d9b authored about 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Regex" rule

Because some classes extend the "Regex" class this commit will also
change the implementation of...

54293d4ca2846de8f7af47d251fdb33e94dc6fa8 authored about 6 years ago by Danilo Correa <[email protected]>
Create "ContainsAny" rule

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

81d71749b781813ddc6651d6a74060a4be61fe06 authored about 6 years ago by Kirill Dlussky <[email protected]>
Fix wrong behavior in the "Contains" rule

While making sure that Validation uses PHP strict types [1] the compared
value in the "Contains"...

8fd18d9b7269ef2f8c8ed850552483dad9ce0458 authored about 6 years ago by Henrique Moody <[email protected]>
Merge branch '1.1'

a00617bcad90cbee58a23cac804ce1db6375bc31 authored about 6 years ago by Henrique Moody <[email protected]>
Update "See also" section in the rules's documentation

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

a009286ba6e37d86ba6d5253143b96e4038959c5 authored about 6 years ago by Henrique Moody <[email protected]>
Merge branch '1.1'

aae3ae2d14eb0e4d996f89d8ed7f7f8eb83b85be authored about 6 years ago by Henrique Moody <[email protected]>
Create MkDocs configuration file

In order to customize the "theme" and be able to test it locally.

Signed-off-by: Henrique Moody...

dbf5dc33d0163b509d0b9c971c56d3dcd30c14e2 authored about 6 years ago by Henrique Moody <[email protected]>
Improve code and documentation of "Ip" rule

This commit will do many different things, but they are all improvements
to the "Ip" rules:

* R...

bd63f65c91e26cd67a9027a0fc668ed6f99e38ad authored about 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Ip" rule

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

2aaec39dbb05dce35f749c94a9e033b731a12114 authored about 6 years ago by Henrique Moody <[email protected]>
Use a more consisten names for traits

Because traits are behaviors that are added to a class, it makes sense
to name them with the beh...

73f9380d9e0606b0dd67e6ba71ea69762e38b69f authored about 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "SymbolicLink" rule

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

b392fbb92e77c6e84adb6069b72809a13fbb668e authored about 6 years ago by Gus Antoniassi <[email protected]>
Merge branch '1.1'

ab87cb083db4d81086f22192b74070814f0cc6c4 authored about 6 years ago by Henrique Moody <[email protected]>
Updated documentation about custom rules

The documentation about custom rules does not specify that creating an
exception for the rule is...

780233a44bc0a446fb35592ce3b5da037c4d64fc authored about 6 years ago by Lee Hesselden <[email protected]>
Update PHP support

Due to the current status of the development of the library, it seems
like we will be supporting...

66f54754638536f40b8820f1b13ad11453675bbc authored about 6 years ago by Henrique Moody <[email protected]>
Add "CREDITS" section to PHPT files

All the PHP files have the "@author" annotation to make clear which
people have contributed to t...

df3f1c0ea7d8f42a52f8ea2e84e57633b50373e0 authored about 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "When" rule

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

54e3f99ec46b157ead5162a9be093b7963ac01cd authored about 6 years ago by Danilo Correa <[email protected]>
Add missing "@author" annotations

This commit will make sure that every class, interface, or trait will
have the "@author" annotat...

9e7571fb983527ea24d9ddd7c7773e767fb1d137 authored about 6 years ago by Henrique Moody <[email protected]>
Fix "@author" annotations

Some classes and one trait had some mismatch values for their "@author"
annotation and this comm...

2e29b9e8c7ef5927cc40d754806aef66b373f0d0 authored about 6 years ago by Henrique Moody <[email protected]>