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 "Key" prefix from KeyException message

Most Validation errors are sent to Users/Visitors or Clients and as such
might not need to know ...

029fa7fe73521b2485076bcfaae4c4e9e859b1fa authored over 4 years ago by Olumide Samson <[email protected]>
Auto-resolve exception namespaces

After the refactoring on the Factory class [1], to throw exceptions of a
specific rule, it is ne...

8b2819e9f8d43c67bd6bac676eb260ed59b01de9 authored over 4 years ago by Henrique Moody <[email protected]>
Check "bcmath" extension before executing tests

Although BCMath is necessary to execute "Ip" and "Iban" rules, we not
required that in the "comp...

ed304f3406446313c0adb5b3cf40faed3daa1608 authored over 4 years ago by Henrique Moody <[email protected]>
Only define filter_var options when it is valid

The third argument of "filter_var" must be either an integer or an
array. On PHP 8 this "FilterV...

e0c6f33c019be5dff0c4c260194ab4937a1d271d authored over 4 years ago by Henrique Moody <[email protected]>
Allow optional space for greek postal codes

2fad28b36bbbb980c32259523abe87f98377285e authored over 4 years ago by Alexandre Gaigalas <[email protected]>
Add support for PHP 8.0

We already supported PHP 8.0 as our constrains in the "composer.json"
file was ">=7.3", but we w...

f53b77a186cfffd3bb5dbe4e7822856d4a6c6cbb authored over 4 years ago by Henrique Moody <[email protected]>
Remove PHP 8.0 from the build matrix

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

a65980ca451e2d0abd1db6957e08d1b25623cb21 authored over 4 years ago by Henrique Moody <[email protected]>
Configure continuous integration with GitHub actions

This commit will also remove Travis and Scrutinizer and will configure
Codecov as a code coverag...

80ff37ca7f340fa41791f43bdf879a6fa6547cf2 authored over 4 years ago by Henrique Moody <[email protected]>
Update version of "respect/coding-standard"

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

72dd88144ef0c4aa6fc044b5bc49402a82a5cf2b authored over 4 years ago by Henrique Moody <[email protected]>
Update version of PHPUnit package

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

966c5105596534dea3d4cd57b77d9856181a2e48 authored over 4 years ago by Henrique Moody <[email protected]>
Drop support for PHP 7.2

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

5150428b270aa17bf3073a50a62174ece11c7c9d authored over 4 years ago by Henrique Moody <[email protected]>
Update AllOfException.php

9235695b6d4c3c62661aba5b2ab48ff8f2671961 authored over 4 years ago by walkor <[email protected]>
Update README.md

65a6dfa38a682a50a9a75832c7917b15df4287cb authored over 4 years ago by walkor <[email protected]>
support input method

8d8e32608395e82569b0cdbfd435cbc88856b81d authored over 4 years ago by walkor <[email protected]>
汉化

2a4d8a8da33abb3383392f24718cecb396f7da76 authored over 4 years ago by walkor <[email protected]>
Update list of top-level domains

314aa36e37dd3812b7d80c7bda3e83da5ee22d11 authored over 4 years ago by The Respect Panda <[email protected]>
Update list of files to be exported by Git

Also, remove "couscous.yml" that is not being used anymore.

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

f7a57a7f89f36c96eb312e98044f1326b705559f authored over 4 years ago by Henrique Moody <[email protected]>
Update version of PHPStan packages

Some amazing features had to be ignored because it conflicts with out
coring standards. I hope t...

642602fd434df1cf32ef823bce94706c1ff1b34b authored over 4 years ago by Henrique Moody <[email protected]>
Do not overwrite pre-defined rule name

All the rules that extend the "AbstractRelated" class overwrite the name
of the inner-rule even ...

fc14c6c6695c3f870ad8810a2acddccec015841d authored over 4 years ago by Cameron Hall <[email protected]>
Allow validating domains with "FilterVar" rule

Even though using "filter_var()" to validate domains may is error-prone,
Validation should fully...

44d0af414874b2f01c060795ba2266efb330e3f1 authored over 4 years ago by Chris Ramakers <[email protected]>
Update version of "respect/coding-standard"

With that update, we will be fully following PSR-12.

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

3145426472e3a6fbb5abbddc25a0cc0cf3b4e2fe authored over 4 years ago by Henrique Moody <[email protected]>
Allow leading zeros when using "IntVal" rule

There is some confusion about integer literals (as we type them into
source code) and integer va...

34cbed2c9bd9412c9da9241ff2e1058ed434c860 authored over 4 years ago by bmorg <[email protected]>
Update list of top-level domains

78d1ce404cee8a25e2577ee5b829ee88e7ea1e4a authored over 4 years ago by The Respect Panda <[email protected]>
Improve unit tests for "Call" rule

I can't explain why, but depending on the environment, some tests of the
"Call" rule was failing...

6f3979cb5192f53d0c8990b33155078dad463253 authored over 4 years ago by Henrique Moody <[email protected]>
Set timezone to UTC when testing date-related rules

Set default timezone explicitly to UTC so that tests do not fail in
other time-zones.

Co-author...

f3faf50340ab220b6eeab92d705cfb72efcf2973 authored over 4 years ago by Casey McLaughlin <[email protected]>
Update Serbian postal code validation

According to Wikipedia, also known as the most reliable source of
information on the whole Inter...

0a3f4c6a4beb5301ed652424a27941705ee427b0 authored over 4 years ago by Daniel Altenburg <[email protected]>
Update list of top-level domains

e2783d42207d2681ab8498b9e2d3161cea9ba762 authored over 4 years ago by The Respect Panda <[email protected]>
Update list of top-level domains

80f236bb900e5bc5e790737a31806f4d10c560ba authored over 4 years ago by The Respect Panda <[email protected]>
Update list of top-level domains

83936a0c005cac7248fd193139845758d77e383f authored over 4 years ago by The Respect Panda <[email protected]>
Update list of language codes

6eeacfce5aa8d31133070f47dbd910b38ac272de authored over 4 years ago by The Respect Panda <[email protected]>
Configure GitHub workflow to update top-level domains

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

3be622a9fa60428f236684f72018e204c67cdf7f authored over 4 years ago by Henrique Moody <[email protected]>
Configure GitHub workflow to update language codes

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

83b515d0a38154c65ca295e98f2dbb71298088e1 authored over 4 years ago by Henrique Moody <[email protected]>
Configure GitHub workflow to update currency codes

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

bb9ff1dba0675c1c26b40bd0bc57afb34b7dc0ca authored over 4 years ago by Henrique Moody <[email protected]>
Update list of currency codes

Also updates the script that updates the currency codes.

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

e0fbed32c90b408652bb30803647d90901f612f1 authored over 4 years ago by Henrique Moody <[email protected]>
Update list of top-level domains

This commit will add the LLP, XN--MGBCPQ6GPA1A, XN--Q7CE6A and XN--QXA6A
top-level domains, and ...

6f9213287416a34afe864ba0b203feeb8f318bbe authored over 4 years ago by Henrique Moody <[email protected]>
Update list of postal code validations

This commit will update the list of postal codes using the command
below:

curl -L http://downlo...

37746f3a6d83a9f7dc1db08e73692d63e28de06f authored over 4 years ago by Henrique Moody <[email protected]>
Update validation for Armenian postal codes

According to Wikipedia[1]:

> Postal codes in Armenia consist of four digits. Until April 1, 200...

6e2b3e599e2d671d6e5213363bf1117d614c790c authored over 4 years ago by Daniel Altenburg <[email protected]>
Add support for Caymanian postal code validation

According to Wikipedia[1]:

> A postal code typically consists of an island code, a hyphen
> sep...

a44f97f4b358be1fa97ab1b1e32436e89f2eee90 authored over 4 years ago by Mateusz Burzyński <[email protected]>
Update validation for Israeli postal codes

According to Wikipedia [1]:

> Until February 2013, Israel postal codes were 5-digit. Officially...

b7b67da31ef38b721d01998b951863aa62db4bf2 authored over 4 years ago by Bogus <[email protected]>
Report all errors when asserting with "Each" rule

The intention of the "assert()" method is to show all the errors that a
given input may have. Th...

350119229370247ad89f101486288f5947b1b1b1 authored over 4 years ago by Dylan T <[email protected]>
Restore previous error handler when validation fails

The "Call" validator, the "assert()" and "check()" methods, define a
custom error handler so it ...

7154e90522417ada235c4360223b7d12ef0241a0 authored over 4 years ago by pathumhdes <[email protected]>
Fix ecuador postal code format to 6 digits

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

3463343b14a7fa5ba931f03b5dcb8efcbc0ddf9c authored over 4 years ago by Daniel Altenburg <[email protected]>
Update docblock from "when" rule

The variable name in dynamic method when does not match variable name in When object.

4d706b0845a22b094767373dd7c410515c12aa8b authored over 4 years ago by Pierre-Antoine Guillaume <[email protected]>
Fix Email validator when egulias/email-validator was not installed

015e6d4a54d61d82a3e0add3b2fa19316290cfdf authored almost 5 years ago by Mikko Pesari <[email protected]>
Change the PHP support to version 7.2 or aboce

Since there will still be secutiry support until 30 Nov 2020 and there
was something happening i...

b4ad2f6413fa1c10b24cb204bee5831fb46e11aa authored almost 5 years ago by Henrique Moody <[email protected]>
Remove version alias for "dev-master"

I don't know whether the next version will be a MINOR or a MAJOR
version, therefore it makes no ...

fb283324174bfb1a9a8da3685f1da378e6aca70b authored almost 5 years ago by Henrique Moody <[email protected]>
Remove current disclaimer about current stable version

As I'm about to release version 2.0, that disclaimer won't be necessary
anymore.

Signed-off-by:...

96116e0ff61e5ca05e0e15ec47cfba3dc3c14cfc authored almost 5 years ago by Henrique Moody <[email protected]>
Drop support for PHP < 7.3

I am about to release version 2.0, and it's been way too much time since
I created a MINOR or MA...

f4593b7479e3bf2190a2a6cf5f0eb54a7dc36558 authored almost 5 years ago by Henrique Moody <[email protected]>
Add support for PHP 7.4 version

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

b9e73db494aff904903ea4215d8587cbfea2deeb authored almost 5 years ago by Henrique Moody <[email protected]>
Update "egulias/email-validator" version

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

9a868f6e5f721f0fef9a27f3705cf7044a2c07b1 authored almost 5 years ago by Henrique Moody <[email protected]>
Update "malukenho/docheader" version

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

2a8b0770d6aeb0873ebaadc26b10197648cf7078 authored almost 5 years ago by Henrique Moody <[email protected]>
Update PHP_CodeSniffer version

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

2fb08236c586232d2879ebb41f0712d2f8c93ff8 authored almost 5 years ago by Henrique Moody <[email protected]>
Update PHPUnit version

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

42300ef48e03ccb27d30a505140ed0e887c24553 authored almost 5 years ago by Henrique Moody <[email protected]>
Fix possible error when recursing exceptions

The method "current()" from NestedValidationException can return any
instance of ValidationExcep...

9a41f644796a503905e70d40f330cda0b2324266 authored almost 5 years ago by Henrique Moody <[email protected]>
Move "MaxAgeTest" to the correct directory

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

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

This commit will revert the update of subdivision codes [1] since the
way we store this data is ...

2d0f56d9cb65bd05cd11aef9476671e4eacd2b07 authored over 5 years ago by Henrique Moody <[email protected]>
Update list of currency codes

This commit will also create a Bash script to update that list in the
future.

Signed-off-by: He...

45d109fc830644fecc1145200d6351ce4f2769d0 authored over 5 years ago by Henrique Moody <[email protected]>
Update list of language code

This commit will also create a Bash script to update that list in the
future.

Signed-off-by: He...

c51931679c6e05ecd69da379b28c39643cd0d108 authored over 5 years ago by Henrique Moody <[email protected]>
Update list of subdivision codes

To update the list of subdivisions, I decided to use the iso-codes [1]
instead of GeoNames [2] a...

8b8f7db713014287dfc3d4a04709c0e75b9040ff authored over 5 years ago by Henrique Moody <[email protected]>
Update list of Country Codes

To update the list of countries, I decided to use the iso-codes [1]
instead of GeoNames [2] as i...

f580e187d07c1868dde28184fe2c8e3721a25d77 authored over 5 years ago by Henrique Moody <[email protected]>
Create script to update TLD list

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

9b810b0e55b1bb59bb6ccc458185427e410028e5 authored over 5 years ago by Henrique Moody <[email protected]>
Update TLD list to version 2019052600

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

5c61c25680ec25bca9b2823ffc20ca15c25971f4 authored over 5 years ago by Henrique Moody <[email protected]>
Create script to update documentation links

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

14e8eee7a0c87fb66df60de5e895e87c3a84c5d1 authored over 5 years ago by Henrique Moody <[email protected]>
Update contribution guidelines

Some links do not work and the documentation is outdated.

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

5858d060971ad914c25b269ad2e2afc282eb91f0 authored over 5 years ago by Henrique Moody <[email protected]>
Simplify "README.md" file

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

1dace92e8964baa8c7d08199907e20a57e1cea98 authored over 5 years ago by Henrique Moody <[email protected]>
Turn LICENSE file into plain/text

There is no need for that file to be a Markdown, and it can be a plain
text file.

Signed-off-by...

ef8a8f4b27b673cdbb8d99b53ff621cc16036e84 authored over 5 years ago by Henrique Moody <[email protected]>
Remove documentation links in the repository

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

1b0be4c3a6b4908e5ddd7a4600ed930f3f09a3ea authored over 5 years ago by Henrique Moody <[email protected]>
Add warning about the stable version

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

32d796ed3d3dd80358358573c91689b4eab01d6f authored over 5 years ago by Henrique Moody <[email protected]>
Remove duplication amoung documentations

There is quite some duplication between the "README.md" file and the
"docs/index.md". This commi...

6a52b63bbb9417834a80877236825a2a62dcc0e8 authored over 5 years ago by Henrique Moody <[email protected]>
Update number of rules in the documentation

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

b88da74f796d3faccd8100acf8d005565620c0c7 authored over 5 years ago by Henrique Moody <[email protected]>
Upgrade supported PHP version in the documentation

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

1b146758eeb3e42a25dd7a81315f1e6dee7b12b5 authored over 5 years ago by Henrique Moody <[email protected]>
Move "Message placeholder conversion" documentation

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

408d8e825b39c33f2743203c3baff391737be8ba authored over 5 years ago by Henrique Moody <[email protected]>
Move "Message translation" documentation

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

5c0bd3a5dae814c6861ad03dcaff1f144f7d93ba authored over 5 years ago by Henrique Moody <[email protected]>
Move "Custom rules" documentation

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

7be7f0f58c093338187087b519eb20b835a970f8 authored over 5 years ago by Henrique Moody <[email protected]>
Replace removed rule from documentation

The "Age" was removed but the documentation was not completely updated.

fbf82dc975652a8dfb357565f92ef9dc7ca08180 authored over 5 years ago by Danilo Correa <[email protected]>
Allow to customize parameter stringifier

We have seen users that want to change the default behavior of parameter
stringifier:

* Change ...

3093d79155bcc1f8bed91decec36c1807e084617 authored over 5 years ago by Henrique Moody <[email protected]>
Move message formatting out of ValidationException

There should not be too much code in the ValidationException. It is hard
to test and debug code ...

00f61b9bdc94dab9a91dab169ed66a4bbcbdd3b0 authored over 5 years ago by Henrique Moody <[email protected]>
Improve how to customize the Factory

The constructor of "Factory" has three arguments and, even though none
of them are needed, they ...

ab602ae1bb64cdf9c0a3488f65aaf48e1d068b15 authored over 5 years ago by Henrique Moody <[email protected]>
Make default templates non-static and protected

The only reason why those templates are static is so users can overwrite
the exception messages....

f3bc39066b98c509c0c4d7e9072587ef41814e1b authored over 5 years ago by Henrique Moody <[email protected]>
Remove "IdentityCard" in favor of "PolishIdCard"

The only Identity Card we have is the Polish one, that said it makes
more sense to have a specif...

c522f6235c93cec36bdcc8512aab194a5b0b8751 authored over 5 years ago by Henrique Moody <[email protected]>
Remove "Vatin" in favor of "Nip"

There are not other VATINs besides the one from Poland. That said, it
makes more sense to have a...

f23b3a522a606121106b2014432a7a94fbfb0539 authored over 5 years ago by Henrique Moody <[email protected]>
Fix confusion with some changelogs

The changelogs that this commit will change are confusing. From a code
perspective, the rule Dat...

0417fea213fc883f9c708418ff65aabc95106106 authored over 5 years ago by Henrique Moody <[email protected]>
Use "Respect" coding standard

There are too many PHP_CodeSniffer configurations in this repository.

I have created "respect/c...

16376306f8f99308c6f0123af346d60c7eb28327 authored over 5 years ago by Henrique Moody <[email protected]>
Apply "Symfony.Functions.ScopeOrder"

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

272f18dcf5fe7112cdf11f5c0973eb00bc632944 authored over 5 years ago by Henrique Moody <[email protected]>
Rename rule "Cntrl" to "Control"

This commit will rename the rule by removing the abbreviation to make it
a bit easier to underst...

9c0f8dcfcce1064da4c3345cc8b5cfe9403f45ac authored over 5 years ago by Henrique Moody <[email protected]>
Update list of rules in "list-of-rules.md"

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

4db2b00f6c1d206f3ea7e8c4bb6496a0b38c13c2 authored over 5 years ago by Henrique Moody <[email protected]>
Add "Categorization" section to rule documentations

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

10df3211f52b8727bd54c1f70c38e4e657e68c51 authored over 5 years ago by Henrique Moody <[email protected]>
Move documentation about "Comparable Values"

This documentation is in the "rules" directory, but it should be outside
that directory since th...

b815fdff92d5479c502fedea59aacf73bf08d4cc authored over 5 years ago by Henrique Moody <[email protected]>
Fix broken links in "list-of-rules.md"

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

6e4927a6216a05bd029069541a99c9b788beb8b4 authored over 5 years ago by Henrique Moody <[email protected]>
Add missing changelog entry in "Unique.md"

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

996b797db0022dd3303abecd0005e068ef6b5e9d authored over 5 years ago by Henrique Moody <[email protected]>
Make properties of "AbstractRelated" private

Following what is happening with pretty much every class in this
library, this commit will make ...

051866f75aa8617f958988cc252666d482959af4 authored over 5 years ago by Henrique Moody <[email protected]>
Fix syntax issue in ".travis.yml" file

On the step that was sending the code coverage to Scrutinizer, there is
an issue with the syntax...

541fea9d7b77f457e089690f8b561d25d623e558 authored over 5 years ago by Henrique Moody <[email protected]>
Apply "phpstan/phpstan-deprecation-rules" rules

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

95b499b6279c6e2732ec8f2cb665b10a9f9cd719 authored over 5 years ago by Henrique Moody <[email protected]>
Apply "phpstan/phpstan-phpunit" rules

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

d00ed89f3caa9c61493d43cf97b303771d80b8ec authored over 5 years ago by Henrique Moody <[email protected]>
Remove exceptions from suvdivision code rules

The "SubdivisionCode" rule was refactored [1] and now it doesn't need
one rule per country.

Thi...

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

As the "Vatin" rule is a "Plvatin" wrapper I considered using the same
unit tests from "PlVatin"...

b8508e989ad1e7b6423bddfca34cc2bc3f0abdaa authored over 5 years ago by Danilo Correa <[email protected]>
Improve Travis configuration

This commit will put the quality assurance tools that Travis executes
into a different stage.

I...

5aba4c8889ba7ac8e3f5982fb6a117be53500096 authored over 5 years ago by Henrique Moody <[email protected]>
Convert case of "mikey179/vfsstream" package

Package names in Composer should not contain uppercase characters, and
after the version 2.0, it...

1303a935bf8f67a8b0da4dcbe1af951d3756344e authored over 5 years ago by Henrique Moody <[email protected]>
Fix some issues with the "KeyValue" rule

There are a couple of issues with the "KeyValue" rule:

* When using it with "Not" it does not f...

2ac0aecf0ccbdcae5c491aa7245523cb32de18c8 authored over 5 years ago by Henrique Moody <[email protected]>
Increase the number of rules we have in README.md

At this point, Validation has 151 available rules.

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

d2d4728883b8e5af6b05b7a9929c39bdbebf7a16 authored almost 6 years ago by Henrique Moody <[email protected]>