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

Make second argument of "AbstractEnvelope" optional

The argument "parameters" which is meant to give the wrapped rule's
exception some extra informa...

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

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

9595b3fd6c3b4d20ac07344ef10716c16b6ba2bb authored about 6 years ago by Danilo Benevides <[email protected]>
Fix Regex for Canadian postal code

Removes the errant space in the CA PostalCode regex.
This space was introduced by 5a067fa.

It a...

f8c90fa36859ca41c766efcf0c476d58913a7767 authored about 6 years ago by Brian Johnson <[email protected]>
Apply contribution guidelines to "VideoUrl" rule

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

d6699a3dafbccea175e638ba32e54b0cdd35b631 authored about 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Writable" rule

Co-authored-by: Henrique Moody <[email protected]>
Co-authored-by: Danilo Correa <danilosi...

c871291a550af455b85cf49d5ac03d8a9f9dd746 authored about 6 years ago by Danilo Correa <[email protected]>
Add support to Twitch on "VideoUrl" rule (#1154)

Co-authored-by: Emmerson Siqueira <[email protected]>

299551dea31583b40ddc417ac1daafca81005f0f authored about 6 years ago by Emmerson Siqueira <[email protected]>
Execute PHP 7.3 on Travis

Because "friendsofphp/php-cs-fixer" does not support PHP 7.3 this commit
will also add "--ignore...

4e045e75b4431bb4a8e62d9ebe9aea3f310915ac authored about 6 years ago by Henrique Moody <[email protected]>
Use variadics "AbstractFilterRule" rule

Since the library doesn't need to give support to version 5.4 or less of
PHP using variadics in ...

c99f3818b7dd1b2a475a674db095bd2093d1780c authored about 6 years ago by Henrique Moody <[email protected]>
Add support for specific versions of UUID

This commit will allow validation of UUIDs with versions 1, 3, 4 and 5.

Version 2 was not imple...

6730576fe4dae40d3b01bc0144a94d0750fa68dc authored about 6 years ago by Michael Weimann <[email protected]>
Fix license identifier

Currently the license identifier (BSD Style) does not comform to the
SPDX list of valid identifi...

48b06254c4af1a2d6c1715eb3a2bb3cb72e08bfc authored about 6 years ago by Linus Metzler <[email protected]>
Update Korean postal code validation

The Korea Postal code system changed from a 6-digit postal code system
to a 5-digit postal code ...

892b39e5ff407f630c57f3e40c6d9fb2a9674d00 authored about 6 years ago by ong-ar <[email protected]>
Merge branch '1.1'

d9628a89dd7979d21b0f22b5058bd64f20eef51e authored about 6 years ago by Henrique Moody <[email protected]>
Update TLD list with version 2018100800 from IANA

As it seems, the TLDs "goodhands", "jlc", "panerai", "statoil",
"telecity", and "vista" were rem...

203f8e7e9d7fc41d8e757f02ae424702822f2fa1 authored about 6 years ago by Henrique Moody <[email protected]>
Make sure that "Email" only validates strings

There shouldn't be possible to consider a non-string value as a valid
email anyways, but the rea...

c9850f4ec7d9ee4e822e8fec6781c72d0f5fede4 authored about 6 years ago by Konstantin <[email protected]>
Apply contribution guidelines to "File" rule

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

4200704bdc328f3cf4127848fdde56724f63afb2 authored about 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Version" rule

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

fbbab77b2464c38fc671982bde32c5d369b3b741 authored about 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Finite" rule

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

23656c9030c03f65857b98aeb77b0c4707f0ce86 authored about 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Fibonacci" rule

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

69a01249da4582fe72ab100556639718e1bf085a authored about 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "FalseVal" rule

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

0be63bd3139064c8007049c8148edce30c303d6e authored about 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Factor" rule

eb232247da883d7eb88d512ac04be5b014355a10 authored about 6 years ago by Danilo Correa <[email protected]>
Create Composer scripts to help during development

This commit will create Composer scripts for commands that are
frequently used during the develo...

b399bfe1c11aeec3c5fcba9e5c0af9994df7e874 authored about 6 years ago by Danilo Correa <[email protected]>
Create "Isbn" rule

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

03ea1b75f697f0ea876e5f1b044c7cdf0e938127 authored about 6 years ago by Moritz <[email protected]>
Apply contribution guidelines to "Extension" rule

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

4106589e7fef57cd2cdb16f95901cfe5aefb2176 authored about 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Luhn" rule

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

1b4a90487188f33cfe8fb7453cf7a8238a7746af authored about 6 years ago by Danilo Correa <[email protected]>
Remove unnecessary inheritance from "Yes" rule

The "Yes" rule extends "Regex" rule. The only reasons why that is useful
is because "Yes" uses r...

478e248dad70f7d42ffe8b513564ef4af035da62 authored over 6 years ago by Henrique Moody <[email protected]>
Remove "AbstractRegexRule" class

The "AbstractRegexRule" seems like an unnecessary overhead on top of the
"AbstractFilterRule". I...

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

This commit will also replace the usage of "mac" to "MAC" since it is an
acronym.

Co-authored-b...

907e24fb8f9e58a55e6c9512d3092c2fc357c399 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Mimetype" rule

This commit will also replace the usage of "mime" to "MIME" since it is
an acronym.

Co-authored...

e2e9197f2902272430aee9ce271770d18aa1efe2 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Yes" rule

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

fd13b03d18aa3d543f088b1c1dec40169d0f8d43 authored over 6 years ago by Cameron Hall <[email protected]>
Remove "AbstractCtypeRule" class

The "AbstractCtypeRule" class is an abstraction that is purely an
overhead on top of the "Abstra...

35f3dd63af1795ffec05ae1d27fe43824fd2522f authored over 6 years ago by Henrique Moody <[email protected]>
Remove "image_5.phpt" file

This file should have been removed by when the contribution guidelines
were applied to "Image" b...

d5724c0d9a5718c88ccf078d2c1bb9d73f85a3bf authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Readable" rule

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

aedf261958993cec28d28cc7ab3f3f0d0338fdd8 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "LeapYear" rule

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

083ccec0685e1c4f2d862c6375e0bfc7bec15502 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "NotOptional" rule

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

5b6184d4e273c49cfdb13063c45be6effcd6e9a5 authored over 6 years ago by Danilo Correa <[email protected]>
Do not accept whitespace by default in "Digit" rule

The "Digit" rule is meant to validate digits. However, by default, it
also considers any whitesp...

9283c8ecd977abd6d8bf0004aed0dde690cc9e15 authored over 6 years ago by Henrique Moody <[email protected]>
Do not accept whitespace by default in "Alpha" rule

The intent of the "Alpha" rule is to validate alphabetic values.
However, it also considers any ...

27bd5d204d06cf22cd0d453cffa201a11cd6ec8d authored over 6 years ago by Henrique Moody <[email protected]>
Create "FilteredValidationException" class

All the classes that were extending "AbstractFilterRule" were throwing
exceptions that were exte...

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

24040c947333f51dcf7c3883774eb0f7e5e179b0 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Pesel" rule

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

0e67549dd99bc7df4dda39c9e4e8147acdfe6973 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "LeapDate" rule

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

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

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

73a010734989fe80caa060a318ed083ef4a5576d authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Pis" rule

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

30993fc4a0d88f39ac92cfda3df273375ab18919 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "StringVal" rule

Also creates a "ToStringStub" class to help on testing objects that can
be converted to string.
...

e832a99d4c5b3e016b9810096d84e7cd8adf323f authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "NumericVal" rule

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

c7fbded457ad24107f474b95ffe0b7bd9047f525 authored over 6 years ago by Danilo Correa <[email protected]>
Apply contribution guidelines to "Length" rule

Because of the type hinting some validation could be removed from the
"length" constructor.

Whi...

17f8c50f54c81b94baad035153cf257f0b678d12 authored over 6 years ago by Danilo Correa <[email protected]>
Do not accept whitespace by default in "Alnum" rule

The "Alnum" rule is supposed to validate alphanumeric values, but
instead, it also validates any...

779c0c1503e17fe692f17cd33e82a6b75e776f32 authored over 6 years ago by Henrique Moody <[email protected]>
Remove condition related to HHVM

Because we don't support HHVM anymore, there is no reason to keep a
condition that keeps the tes...

fb9d3a69183aec3f8a30cb7116be420f93655e8a authored over 6 years ago by Henrique Moody <[email protected]>
Upgrade PHPUnit version

The changes you see in this commit had to be made due to the upgrade of
PHPunit version.

Signed...

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

9a8cac06d7ecb2853e91008d3892bec11158b14d authored over 6 years ago by Danilo Benevides <[email protected]>
Update "PostalCode" list

Updated the whole list according to the last version found on
geonames.org.

The script that I e...

5a067faec79d0cd74aa189fc535a644fa29e0c70 authored over 6 years ago by Henrique Moody <[email protected]>
Fix wrong behavior of "Date" rule

The validation was considering "99" as a valid month and neither
date_parse_from_format() [1] or...

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

435465219532cb15e50b8634ac06acd6b1c01e2b authored over 6 years ago by Henrique Moody <[email protected]>
Organize documentation for "Read the Docs"

The current documentation is hosted via GitHub pages rendered by
"Couscous". Every time we need ...

52614d600dafcc9cb66ce841b953c6edc0fcf138 authored over 6 years ago by Henrique Moody <[email protected]>
Setup PHPStan (PHP Static Analysis Tool)

Require "phpstan/phpstan" for development and add to the Travis CI
configuration file to execute...

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

f5c167c4118184eda7502ea02ab0e6501f229c15 authored over 6 years ago by Henrique Moody <[email protected]>
Change how "Sf" rule works

Instead of creating the Symfony constraints itself "Sf" accepts an
instance of "Symfony\Componen...

1da164a26e97fa293482e1d648c6c08f85733278 authored over 6 years ago by Henrique Moody <[email protected]>
Remove support "egulias/email-validator" ~1.0

The rule "Email" now only supports the version >=2.0 of
"egulias/email-validator". Also a few ch...

fe7fed34612e4d59ccb335a7c075668222f482cf authored over 6 years ago by Henrique Moody <[email protected]>
Intercept throwables in the "Call" rule

The callable defined to the "Call" rule may also throw an exception and
as we don't want to have...

d64d26c6810744238a601bbdadf1fa5379496882 authored over 6 years ago by Henrique Moody <[email protected]>
Do not trigger PHP errors in the "Call" rule

This commit make sure that when the callable is executed by the "Call"
rule and PHP triggers an ...

2fac861aa102e7274dfbd24fce23668a0dc5d97e authored over 6 years ago by Henrique Moody <[email protected]>
Execute PHP-CS-Fixer

The last version of PHP-CS-Fixer fixes a few things that were not
detected before.

Signed-off-b...

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

2b8acfd7901a0f20444396fcd23a79cb2aeac036 authored over 6 years ago by Danilo Benevides <[email protected]>
Update "Tld" rule with IANA's list

This commit will update the list of Top-Level Domains in the "Tld" rule
with the latest version ...

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

Also updates how the tests define the name of the instance by using the
class keyword [1] instea...

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

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

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

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

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

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

94d2e87b2a115c72a0df301dc1185efd11358b87 authored over 6 years ago by Danilo Benevides <[email protected]>
Rename "Related" to "Child"

The "NestedValidationException" has exceptions that are its children.
However, we call them "rel...

afab4eb2b481f460f27b40634e119eab41467dc7 authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "NestedValidationException"

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

a1bc0cd6b4e87cb219805029b8ccb4bd019b98e3 authored over 6 years ago by Henrique Moody <[email protected]>
Remove unneessary information from iterator

In the iterator in the "NestedValidationException" the only information
that is necessary is the...

3ad35ed54526fc625cb5304b8cc3c559316004bb authored over 6 years ago by Henrique Moody <[email protected]>
Apply contribution guidelines to "Validator" class

Also removes the possibility of the "create()" method to create a new
Validation with predefined...

da10941ddcd0a54fb6d718da90393bc3856b31f9 authored over 6 years ago by Henrique Moody <[email protected]>
Remove "buildRule" method from "Validator"

Because Validator uses a Factory to create rules, it does not make sense
to create rules with th...

3554288c60e58e3ab2f28ffdb67a6e908a9800c3 authored over 6 years ago by Henrique Moody <[email protected]>
Remove unnecessary validation from "Factory" class

The "ReflectionClass" throws an exception if the class cannot be found,
for that reason the vali...

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

eded93b0dff5d26d6e8426c8eeb04665995e4c4b authored over 6 years ago by Henrique Moody <[email protected]>
Fix issues after merging 1.1

These two branches are very different, therefore merging is becoming
very hard.

I decided to no...

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

57509520a487375a652113e429df780c6d03b1b5 authored over 6 years ago by Henrique Moody <[email protected]>
fix IntVal() leading zero behavior

19d6ec893994912d21b390c43d287816ab070772 authored over 6 years ago by Andrei Drulchenko <[email protected]>
Fix casting error in AbstractInterval classes

The classes that are children of "AbstractInterval" convert their values
before comparing them.
...

47f21596a5accd73e53f8b34bdc8d14abb2849fd authored over 6 years ago by Henrique Moody <[email protected]>
Fix postalCode for Portugal (PT)

4f3aa90d1f1bf5d392ae89b0738a7e10b6b98e7b authored over 6 years ago by Axel Wargnier <[email protected]>
Simplify "AbstractComposite" class

There is a log of magic in the "AbstractComposite" that allows an user
to add a rule in multiple...

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

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

861216c69043080618b08b6c18d1c030ea449ed1 authored over 6 years ago by Danilo Benevides <[email protected]>
Enforce the use of "@covers" annotation

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

fd2bae73521bf08cf3dcd012b6efb09d85ea605a authored over 6 years ago by Henrique Moody <[email protected]>
Add some code standards for PHPUnit tests

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

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

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

f308e7962e20384008cf8b03cf7907d0175c7507 authored over 6 years ago by Danilo Benevides <[email protected]>
Fix grammatical errors in URL exception message

Although the "U" at the first of URL is a vowel, the abbreviation is
pronounced "you-are-ell". B...

667ed36b4868e785d52d815181ff00c798a61be7 authored over 6 years ago by Henrique Moody <[email protected]>
Fix wrong behavior when using templates

When a template is set for a chain of rules, does not really matter
which messages the chain can...

83bb6e3fc9b4cd3fe50b6e37c7d27aff54fc99cf authored over 6 years ago by Wojciech Frącz <[email protected]>
Create "Subset" rule

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

c5978eb5b01dd2a1d98e28f88c2d15adf9cc0d03 authored over 6 years ago by Singwai Chan <[email protected]>
Make clear that "Alnum" rule accepts whitespaces

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

e70c201691365ea7a195f1f7e310e99d2dc6c051 authored over 6 years ago by Islam Elshobokshy <[email protected]>
Apply contribution guidelines to "EndsWith" rule

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

5f684e246f81057bf42bbe0f67735a195f611642 authored over 6 years ago by William Espindola <[email protected]>
Fix postal code for The Netherlands

Postal code for NL allows for a space between the digits and the
letters.

Co-authored-by: Henri...

8fc24844285afb40ea82da148134bad34e8bc710 authored over 6 years ago by Sebastian <[email protected]>
Fix wrong behavior with nested exceptions

Use the same condition to not include child exception into the iterator
to also not show the mes...

4fdd2da19e88b022fb529968639465dc124c991d authored over 6 years ago by Henrique Moody <[email protected]>
Fix "IntVal" considering boolean values as valid

The commit 54d17ab tried to fix the that "IntVal" would pass with values
that are not considered...

f5ca4a298a4475a64f0d8526041c1a58167e8c7c authored over 6 years ago by Adam Benson <[email protected]>
Apply contribution guidelines to "IntVal" rule

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

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

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

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

Also removed the possibility of validating keys once it's possible to
reach the same behavior by...

dc3951edf1c3d79c9d43064b53f48584f4a01518 authored over 6 years ago by William Espindola <[email protected]>
Merge branch '1.1'

70eb87bd77d9d687d8e7d77841bd7b4a1daaaafe authored over 6 years ago by Henrique Moody <[email protected]>
Do not consider any float as integer

Values like "500.00" or 1.0 should not be considered as integer values
even though there is no d...

54d17abcee9c6e734691754c77641a5f51ecc608 authored over 6 years ago by Henrique Moody <[email protected]>
Avoid using unset keys in IpException

The "IpException" was triggering an error when the parameters
"networkRange" or "min" were not d...

0e73bc732e9710dae72e1ae8fbbcbd41d44dbd9a authored over 6 years ago by Henrique Moody <[email protected]>
Create "Equivalent" rule

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

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

Also consider PHP's "Directory" class as a valid directory.

Co-authored-by: Henrique Moody <hen...

0413afc22688b938e14aa9718990d85394c67d9e authored over 6 years ago by William Espindola <[email protected]>
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]>