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

Merge pull request #5 from 596868636/workflows/update-mobile

工作流程/更新移动

a4e9896e76b2fac92aff9a9f784df55f615571a0 authored about 1 year ago by walkor <[email protected]>
Merge branch 'master' of github.com:596868636/validation

24ced1be245131ba7f78fbdd7ed1b3081a9fd971 authored about 1 year ago by ricpro <[email protected]>
1、添加了mobile用于国内手机号验证,官方的phone会把电话号码也验证通过

2、接口添加了setDefault,让使用->setDefault的方法后,ide也能自动跟踪,方便开发
3、input判断,添加了判断输入值是否\Respect\Validation\Vali...

3d93c639836d96757aca71784a529cf3b90301e8 authored about 1 year ago by ricpro <[email protected]>
Merge pull request #3 from 596868636/master

提供无限循环数组嵌套功能

57ee49da5a9dfd7d23b521a05acf5261a3e06cdf authored over 1 year ago by walkor <[email protected]>
提供无限循环数组嵌套功能

d31ea86a123c06cbcad88fe5b66b464c51e70dea authored over 1 year ago by ricpro <[email protected]>
Merge pull request #1 from 596868636/master

添加setDefault,用来设置默认值,当有些字段不需要可填可不填,或者该字段用于某个控制器的固定值时可使用->setDefault()

28316bfb9293bc28110cea7029c10dbf860c0e04 authored over 1 year ago by walkor <[email protected]>
Merge branch '2.3'

# Conflicts:
# library/Exceptions/ExistsException.php
# library/Exceptions/FalseValException.php...

ae51b235bc17fd13d58a78f922768b0c24484543 authored over 1 year ago by ricpro <[email protected]>
强制设置默认值,有些字段不希望被前端传输的参数覆盖,可以使用->setDefault("默认值",true)

6de3b42de1c0976e8bde166eeb0ade496e876dbf authored over 1 year ago by ricpro <[email protected]>
添加setDefault,用来设置默认值,当有些字段不需要可填可不填,或者该字段用于某个控制器的固定值时可使用->setDefault()

4aab1b6ccbf26a8415474a9e8febf316eefc1deb authored over 1 year ago by ricpro <[email protected]>
Update Regional Information

703f610ee838db1a90e84e96ef774176d65451b1 authored over 1 year ago by The Respect Panda <[email protected]>
Use a concrete class to test AbstractEnvelop

It's essential to test our abstract classes because users might use
them. However, creating mock...

2a743962e4b5b8d5254c45254c2aad2464ae2bff authored over 1 year ago by Henrique Moody <[email protected]>
Make data providers static

From PHPUnit 10, all data providers need to be static. This commit will
make migrating from vers...

2ee7509c2e5fa331ffca0917ceef677fb417ed83 authored over 1 year ago by Henrique Moody <[email protected]>
Create a class to help test the Callable rule

With that, the tests will be more straightforward, and we won't need to
use the test class in th...

445af454fdc415b49b11fa967f339cde8af4e724 authored over 1 year ago by Henrique Moody <[email protected]>
Do not use mocks to simulate a rule

We can use the AlwaysValid and AlwaysInvalid rules in the tests instead
of mocking them. Those c...

ebcf247187d0ab8267f58d016ae336866c74c995 authored over 1 year ago by Henrique Moody <[email protected]>
Create class to help testing the Attribute rule

With that, the tests will be more straightforward, and we won't need to
use the test class in th...

ee8dd98f54ecf68dacf56e1dd7251bb1f83c6df9 authored over 1 year ago by Henrique Moody <[email protected]>
Do not use the test class to test the Callback rule

That will help us later because, on PHPUnit 10, all data providers need
to be static.

Signed-of...

049b0b27aed32123566631513646db734a4e032f authored over 1 year ago by Henrique Moody <[email protected]>
Create stubs for PSR-7 interfaces

When we write tests requiring those interfaces, we create mocks. Those
new stubs will make those...

07c4095f11d2a06741a1175b72ed1a08b659ce41 authored over 1 year ago by Henrique Moody <[email protected]>
Allow creating paths from fixture files

We had a method that returned the full path of the fixture directory,
and we frequently would co...

e8fcdb661f307716d5f616c9bdba7aa5b1f55c4a authored over 1 year ago by Henrique Moody <[email protected]>
Improve readability of integration tests

The integration tests use the same pattern to test exception messages.
With my changes, we won't...

8a7bc1ab7a9fbd033498f8460d669e05eca9d532 authored over 1 year ago by Henrique Moody <[email protected]>
Standardize exception messages

Most exception messages in Validation use "must" and "must not" in their
templates, but a few ru...

003830b8e90de6b0af832d4055bc714927ca5883 authored over 1 year ago by Henrique Moody <[email protected]>
Fix the typo on the "Exists" rule's exception

When I created that rule, I barely spoke English.

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

830ad971269b9d9d8ed489f641d239f520b48724 authored almost 2 years ago by Henrique Moody <[email protected]>
Update Regional Information (#1414)

Co-authored-by: The Respect Panda <[email protected]>

dd053f2eea7daa53a207644a5f0d054d749a2dfd authored almost 2 years ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Increase test coverage for some rules (#1412)

- Add test for null value in the Cnpj rule.
- Add UploadedFileInterface object test for Size ru...

afa4cc41eaffe5c1b6e88c1661d9c082af9bbadc authored almost 2 years ago by Danilo Correa <[email protected]>
Update list of rules in the chained validator (#1411)

The "bic" rule has been removed, and two more rules were added.

Signed-off-by: Henrique Moody...

508566eafcf81a76556d09f14be432ff1856c234 authored almost 2 years ago by Henrique Moody <[email protected]>
Update Regional Information (#1410)

Co-authored-by: The Respect Panda <[email protected]>

2080e0d2fbf61ae3d6cfba1858f683706595f22d authored almost 2 years ago by github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Ensure empty strings are never a valid currency code

8f545c142c8d7fd9d115847815444c71318482c1 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Fixed previously introduced bug, add integration test

636906fa07461287dc4e33bb0a206570d5b699f3 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Do not hide messages on EachException

bae314dd0013518e977003c1e47dea6813caf05b authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Stricter date format validation

5fe4b96ebf651407d6b8ba2272e4bdab980b4438 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Update sorting order on public suffix data

7c28d2c1f4b3fd1baf8fcf4b2680741bda1a3d84 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Add idn2 to gh workflow installs

154cccf408b6d84705afaa8aa50e548d06834091 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Auto update postal code list

- For this particular updater, a list of exceptions to the rules
downloaded by geonames is i...

ce9608d0a80aa737b0e52614a3459170f2cafdb0 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Add a test/example of how to explore the exception tree

493a665e99eba86df93cb5fdcd06a35fede6796d authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Add PublicDomainSuffix Rule

- List will be auto-updated from https://publicsuffix.org/list/public_suffix_list.dat
- Update...

e2b6138bf6c797754f33f4533bd96633f0a885dd authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Add test cases for issue #665 to PhoneTest

55290af1fda4e97fe26b0eca9ccd2296a8d6cc73 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Use PHP files and setup a runtime cache for CountryInfo

Previously, we were loading country info from a JSON file. This
changes it to use PHP files inst...

6173757f63099c5752fcfe428c1c10156c260785 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Tests and docs for IP range validation

7e7c3f2fcc1239e9805e28eb72f4c0c852c02fcf authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Use libphonenumber

Doing regex on phone numbers is not a great idea. This is a breaking
change, but a good one. Pho...

cc3bf86b2f0a0e1623c5e4be4b7c3531370f386c authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Increase phpstan level from 7 to 8

- Fixed all phpstan errors and ignoreds.
- False positives now have a "Why:" comment on phpsta...

727e7ccbfa54e2e10fa0acfa10ee2f56a3e25157 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Make KeySet impossible to wrap in not(), fix structure message

The use case for negating a keyset is very confusing, and can
lead to validators that don't do w...

fc8230acef3765ef7bcda967da73b1b7039dd383 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Drop PHP 7.4 support

8cafa3f2981e585686663af2b8310e80ff967d95 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Use SPDX IDs for licensing

SPDX IDs are shorter than licensing notes previously used, and
adhere better to FOSS standards. ...

ab3732f91f9ee1f3526dac0986b1a96b431e40e4 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Remove version info from Tld.php

We currently use a GitHub action to automate updating this file.

That action has the ability to...

ef4778b4562217239e939ccd3c770a323346dfb6 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Improve FilterVar with FILTER_VALIDATE_* options

The `filter_var` function is more of a sanitizer, but we as
a validation library do not care for...

689026fc7b050692fd89610fafceff23cfb71768 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Fix docs links

a3e016bec95b47867af272ecb1247eef3f8f9c46 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Update symfony/validator requirement from ^3.0||^4.0 to ^3.0||^4.0||^5.0 (#1400)

Updates the requirements on [symfony/validator](https://github.com/symfony/validator) to permit ...

c6eaf05f47a3d831777d0296ff120a48463e1012 authored almost 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump actions/checkout from 2 to 3 (#1399)

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](ht...

7776652c85ef5d579ac4006fcfa50be879151f62 authored almost 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump codecov/codecov-action from 1 to 3 (#1398)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 3.
- [Relea...

a96614b5a6eb769e39c52c89ff8dd7645712c08d authored almost 2 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Improve auto-updaters and pull requesters, auto-tld fix

f080f7da08d2b5ec660de3b3ffb65a4d4e943746 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Update peter-evans/create-pull-request@v4

8b3c607d03ae80a572f43cc68e079442ee011e1c authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Update updater workflows, remove countries outside ISO-3366-2, cleanup

74dee73f65146ce8751f49efdbb8bd3c833f6cd5 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Change update_subdivision_codes to work with salsa/iso-codes, updates data

1e2f75287cc38621fd296f57a90040aef9c783fa authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Update docs (and shiny badges)

1e96fd1473001a6fac027172d556cbc8571b3895 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Final CHANGELOG for release 2.2.4

d304ace5325efd7180daffb1f8627bb0affd4e3a authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Updated docheaders

1481c8e1e5e71aa08c39f85af604f702deacc28f authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Updates for IntVal changes

9ae39de44e9888674ceb0c3fc0c7f357bcec1638 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Updated docs

3eb085af8f110fb158add86503973fbfb4b45c1c authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Updated CHANGELOG.md

ecccfb853e7c23423e8ab18552b5106f72598edf authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Merge branch 'omega3000/master' into 2.2

74d7f037a41cf90f2cef565d21f861032f91a901 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Updated CHANGELOG.md, small phpcs fixes

2c5793a0003ec3ace4fae2f36e993a977ab45413 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Merge branch 'rule/portuguese_nif_rule' into 2.2

13f20e75169ea5f1b50e743b6ff13e15df3ef20b authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Merge branch 'scruwi/master' into 2.2

e5223a091388a24fbdd6462f9172e3ca2950eab3 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
General fixes for PR#1392 (rupay card validation)

2951dfd342481e49d8e4c19267aefe89fbd08f57 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Merge branch 'rupay-card-validation' into 2.2

8e345b798ab82d7ecffc556c109376cee7e39fde authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Dusting off. See CHANGELOG.md for more details on this commit

15f148da24263e17fdcf00bf365c77caa411ed62 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Use `json_validate` in `Rules\Json` if available (#1394)

[`json_validate` function](https://wiki.php.net/rfc/json_validate)
[added in PHP 8.3](https://p...

746c755d14582f389dc13da31d41416ca9790ea1 authored almost 2 years ago by Ayesh Karunaratne <[email protected]>
Updated docs to include RuPay

1abf32ccaeccfccc0eaa28284bef4fc092084f43 authored about 2 years ago by Rakshit <[email protected]>
PHPUnit tests for RuPay

0cd309d9f92212f0d7d085c84748faa6122ceb46 authored about 2 years ago by Rakshit <[email protected]>
Added RuPay card validation

c215761890ddf23d5b1b0e2dba4b53cbe20f4594 authored about 2 years ago by Rakshit <[email protected]>
Fix Decimal rule for float values > 10

c7a6f2ebec39c8df1e8ad668780a87e6b767cbc7 authored over 2 years ago by toxxxa <[email protected]>
Add documentation for portuguese fiscal number rule

5e264f9ade34de2b30b369032bf741683f9e667f authored over 2 years ago by Gonçalo Andrade <[email protected]>
Add rule for validating portuguese fiscal numbers

e219da29453bcb55347d2db8cf58943968e3f2a3 authored over 2 years ago by Gonçalo Andrade <[email protected]>
Update FilterVar.php

49387fff74acb63277ea7ed9a476ffe339348772 authored over 2 years ago by walkor <[email protected]>
fix phpdoc type for KeySet constructor (#1365)

by @voda

bf4082d208077e3810c64844cf142e9cc120694b authored almost 3 years ago by Ondřej Vodáček <[email protected]>
Fix E_DEPRECATED warning in IntVal rule on PHP 8.1 (#1374)

by @fabacino

60566e2250d84a42b0e9833001cd7630b8115bd2 authored almost 3 years ago by Fabian Wiget <[email protected]>
Fix check whether start and end address have been set in Ip rule (#1375)

by @fabacino

4847fe45ff09b0fe03f1d7c5122d0a812c3316b6 authored almost 3 years ago by Fabian Wiget <[email protected]>
Allow 5- and 6-digit postal code for Cambodia

b8ee424082177832106e2628a9ab368b945c82a7 authored over 3 years ago by Markus.Lauer <[email protected]>
IntVal: Validate negative numbers properly

660294128fcbb43db9cca4a6ceff3d87b4c0c407 authored over 3 years ago by Alexander Wühr <[email protected]>
Revert "Use "sokil/php-isocodes" on SubdivisionCode"

This reverts commit 9c9c76ebfbf8821738accb76a80cabb954cdd99e.

4c21a7ffc9a4915673cb2c2843963919e664e627 authored almost 4 years ago by Henrique Moody <[email protected]>
Revert "Use "sokil/php-isocodes" on CurrencyCode"

This reverts commit f9b9dd21f9e19f55f7c43389bcdd9bb0c1204e38.

745a5712eb4ce0d6160456e5ce7209418ef08595 authored almost 4 years ago by Henrique Moody <[email protected]>
Revert "Use "sokil/php-isocodes" on LanguageCode"

This reverts commit 5450ef86a862c5316c39504ca8afaf9c10ab91a3.

b78f602f0e540f21df9d4b5dc2d306a69204d743 authored almost 4 years ago by Henrique Moody <[email protected]>
Revert "Use "sokil/php-isocodes" on CountryCode"

This reverts commit 2060207f44bde9cae6f42c3d13c777b011b4de01.

edbbe7fa5b760cd74a3dbc15a2da8914e67ad693 authored almost 4 years ago by Henrique Moody <[email protected]>
Remove ignored error from PHPStan

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

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

143420e79fa690c14513ef170c3718fc328659fe authored almost 4 years ago by The Respect Panda <[email protected]>
Call mbstring functions without getting encoding

The functions from the mbstring can deal find with strings without
forcing an specific encoding....

51ad23e24c83f222468174861de61fc8bcde9bfb authored almost 4 years ago by Henrique Moody <[email protected]>
Upgrade supported version of "egulias/email-validator"

We could simply add version 3.0 instead of replacing it, but I would
like to stimulate people to...

3dcd859d986f1b586b5539ea19962723ab7352ed authored almost 4 years ago by Henrique Moody <[email protected]>
Use "sokil/php-isocodes" on CountryCode

Since we already have that library as a dependency of our repository, it
makes sense to use it a...

2060207f44bde9cae6f42c3d13c777b011b4de01 authored almost 4 years ago by Henrique Moody <[email protected]>
Use "sokil/php-isocodes" on LanguageCode

Since we already have that library as a dependency of our repository, it
makes sense to use it a...

5450ef86a862c5316c39504ca8afaf9c10ab91a3 authored almost 4 years ago by Henrique Moody <[email protected]>
Use "sokil/php-isocodes" on CurrencyCode

Since "sokil/php-isocodes" is a dependency of our repository already, it
makes sense to use it a...

f9b9dd21f9e19f55f7c43389bcdd9bb0c1204e38 authored almost 4 years ago by Henrique Moody <[email protected]>
Use "sokil/php-isocodes" on SubdivisionCode

Inside the "data/" directory, we have files with lists of subdivisions
that need to be updated. ...

9c9c76ebfbf8821738accb76a80cabb954cdd99e authored almost 4 years ago by Henrique Moody <[email protected]>
Use the last MINOR version in updaters

We have three workflows that automatically update the code. They are
using version 2.0 as a base...

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

5a0b53831f44652c3a4fdddeef606d394e5fd56f authored almost 4 years ago by The Respect Panda <[email protected]>
Fix PHPStan issues

This commit will fix an issue but ignore two of them because it will
require some refactoring th...

44a60f67d929d83bd8395f86b01a84213e206a7a authored almost 4 years ago by Henrique Moody <[email protected]>
Fix wrong changelog in the Decimal's documentation

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

5ba764692567d391cd2a10a24f3bdf72d418a200 authored about 4 years ago by Henrique Moody <[email protected]>
Add "Decimal" link to related rules

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

1eb5b9d3c5de193ab94edaeefe1d45f94abe664b authored about 4 years ago by Henrique Moody <[email protected]>
Create "Decimal" rule

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

6c3aed92137836788c8ce654b9c35763c5e98b54 authored about 4 years ago by Henrique Moody <[email protected]>
Create mixin with rules names as methods

One of the reasons for this change is to spare some space on the
Validator class, leaving only r...

d532e942a505d5caaeb60cdddfcb9b24ebbfcde1 authored about 4 years ago by Henrique Moody <[email protected]>
Make "HexRgbColor" rule case-insensitive

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

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

444f105ea6bc220ea908c4ac6debcc2ef313df75 authored about 4 years ago by The Respect Panda <[email protected]>
Allow file-related rules to validate PSR-7 interfaces

The PSR-7 has two interfaces that allow us to validate them as files.
This commit will allow som...

ff253c78b3cad7c084d728375c5082d09862d4e2 authored about 4 years ago by v0idpwn <[email protected]>