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
工作流程/更新移动
a4e9896e76b2fac92aff9a9f784df55f615571a0 authored about 1 year ago by walkor <[email protected]>24ced1be245131ba7f78fbdd7ed1b3081a9fd971 authored about 1 year ago by ricpro <[email protected]>
2、接口添加了setDefault,让使用->setDefault的方法后,ide也能自动跟踪,方便开发
3、input判断,添加了判断输入值是否\Respect\Validation\Vali...
提供无限循环数组嵌套功能
57ee49da5a9dfd7d23b521a05acf5261a3e06cdf authored over 1 year ago by walkor <[email protected]>d31ea86a123c06cbcad88fe5b66b464c51e70dea authored over 1 year ago by ricpro <[email protected]>
添加setDefault,用来设置默认值,当有些字段不需要可填可不填,或者该字段用于某个控制器的固定值时可使用->setDefault()
28316bfb9293bc28110cea7029c10dbf860c0e04 authored over 1 year ago by walkor <[email protected]>
# Conflicts:
# library/Exceptions/ExistsException.php
# library/Exceptions/FalseValException.php...
6de3b42de1c0976e8bde166eeb0ade496e876dbf authored over 1 year ago by ricpro <[email protected]>
4aab1b6ccbf26a8415474a9e8febf316eefc1deb authored over 1 year ago by ricpro <[email protected]>
703f610ee838db1a90e84e96ef774176d65451b1 authored over 1 year ago by The Respect Panda <[email protected]>
It's essential to test our abstract classes because users might use
them. However, creating mock...
From PHPUnit 10, all data providers need to be static. This commit will
make migrating from vers...
With that, the tests will be more straightforward, and we won't need to
use the test class in th...
We can use the AlwaysValid and AlwaysInvalid rules in the tests instead
of mocking them. Those c...
With that, the tests will be more straightforward, and we won't need to
use the test class in th...
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]>
When we write tests requiring those interfaces, we create mocks. Those
new stubs will make those...
We had a method that returned the full path of the fixture directory,
and we frequently would co...
The integration tests use the same pattern to test exception messages.
With my changes, we won't...
Most exception messages in Validation use "must" and "must not" in their
templates, but a few ru...
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]>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>
- Add test for null value in the Cnpj rule.
- Add UploadedFileInterface object test for Size ru...
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]>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>8f545c142c8d7fd9d115847815444c71318482c1 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
636906fa07461287dc4e33bb0a206570d5b699f3 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
bae314dd0013518e977003c1e47dea6813caf05b authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
5fe4b96ebf651407d6b8ba2272e4bdab980b4438 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
7c28d2c1f4b3fd1baf8fcf4b2680741bda1a3d84 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
154cccf408b6d84705afaa8aa50e548d06834091 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
- For this particular updater, a list of exceptions to the rules
downloaded by geonames is i...
493a665e99eba86df93cb5fdcd06a35fede6796d authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
- List will be auto-updated from https://publicsuffix.org/list/public_suffix_list.dat
- Update...
55290af1fda4e97fe26b0eca9ccd2296a8d6cc73 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Previously, we were loading country info from a JSON file. This
changes it to use PHP files inst...
7e7c3f2fcc1239e9805e28eb72f4c0c852c02fcf authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
Doing regex on phone numbers is not a great idea. This is a breaking
change, but a good one. Pho...
- Fixed all phpstan errors and ignoreds.
- False positives now have a "Why:" comment on phpsta...
The use case for negating a keyset is very confusing, and can
lead to validators that don't do w...
8cafa3f2981e585686663af2b8310e80ff967d95 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
SPDX IDs are shorter than licensing notes previously used, and
adhere better to FOSS standards. ...
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]>
The `filter_var` function is more of a sanitizer, but we as
a validation library do not care for...
a3e016bec95b47867af272ecb1247eef3f8f9c46 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
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>
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](ht...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 3.
- [Relea...
f080f7da08d2b5ec660de3b3ffb65a4d4e943746 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
8b3c607d03ae80a572f43cc68e079442ee011e1c authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
74dee73f65146ce8751f49efdbb8bd3c833f6cd5 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
1e2f75287cc38621fd296f57a90040aef9c783fa authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
1e96fd1473001a6fac027172d556cbc8571b3895 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
d304ace5325efd7180daffb1f8627bb0affd4e3a authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
1481c8e1e5e71aa08c39f85af604f702deacc28f authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
9ae39de44e9888674ceb0c3fc0c7f357bcec1638 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
3eb085af8f110fb158add86503973fbfb4b45c1c authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
ecccfb853e7c23423e8ab18552b5106f72598edf authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
74d7f037a41cf90f2cef565d21f861032f91a901 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
2c5793a0003ec3ace4fae2f36e993a977ab45413 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
13f20e75169ea5f1b50e743b6ff13e15df3ef20b authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
e5223a091388a24fbdd6462f9172e3ca2950eab3 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
2951dfd342481e49d8e4c19267aefe89fbd08f57 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
8e345b798ab82d7ecffc556c109376cee7e39fde authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
15f148da24263e17fdcf00bf365c77caa411ed62 authored almost 2 years ago by Alexandre Gomes Gaigalas <[email protected]>
[`json_validate` function](https://wiki.php.net/rfc/json_validate)
[added in PHP 8.3](https://p...
1abf32ccaeccfccc0eaa28284bef4fc092084f43 authored about 2 years ago by Rakshit <[email protected]>
0cd309d9f92212f0d7d085c84748faa6122ceb46 authored about 2 years ago by Rakshit <[email protected]>
c215761890ddf23d5b1b0e2dba4b53cbe20f4594 authored about 2 years ago by Rakshit <[email protected]>
c7a6f2ebec39c8df1e8ad668780a87e6b767cbc7 authored over 2 years ago by toxxxa <[email protected]>
5e264f9ade34de2b30b369032bf741683f9e667f authored over 2 years ago by Gonçalo Andrade <[email protected]>
e219da29453bcb55347d2db8cf58943968e3f2a3 authored over 2 years ago by Gonçalo Andrade <[email protected]>
49387fff74acb63277ea7ed9a476ffe339348772 authored over 2 years ago by walkor <[email protected]>
by @voda
bf4082d208077e3810c64844cf142e9cc120694b authored almost 3 years ago by Ondřej Vodáček <[email protected]>by @fabacino
60566e2250d84a42b0e9833001cd7630b8115bd2 authored almost 3 years ago by Fabian Wiget <[email protected]>by @fabacino
4847fe45ff09b0fe03f1d7c5122d0a812c3316b6 authored almost 3 years ago by Fabian Wiget <[email protected]>b8ee424082177832106e2628a9ab368b945c82a7 authored over 3 years ago by Markus.Lauer <[email protected]>
660294128fcbb43db9cca4a6ceff3d87b4c0c407 authored over 3 years ago by Alexander Wühr <[email protected]>
This reverts commit 9c9c76ebfbf8821738accb76a80cabb954cdd99e.
4c21a7ffc9a4915673cb2c2843963919e664e627 authored almost 4 years ago by Henrique Moody <[email protected]>This reverts commit f9b9dd21f9e19f55f7c43389bcdd9bb0c1204e38.
745a5712eb4ce0d6160456e5ce7209418ef08595 authored almost 4 years ago by Henrique Moody <[email protected]>This reverts commit 5450ef86a862c5316c39504ca8afaf9c10ab91a3.
b78f602f0e540f21df9d4b5dc2d306a69204d743 authored almost 4 years ago by Henrique Moody <[email protected]>This reverts commit 2060207f44bde9cae6f42c3d13c777b011b4de01.
edbbe7fa5b760cd74a3dbc15a2da8914e67ad693 authored almost 4 years ago by Henrique Moody <[email protected]>Signed-off-by: Henrique Moody <[email protected]>
be7e6672a10681c74144e747567fe5e7c2c38dd2 authored almost 4 years ago by Henrique Moody <[email protected]>143420e79fa690c14513ef170c3718fc328659fe authored almost 4 years ago by The Respect Panda <[email protected]>
The functions from the mbstring can deal find with strings without
forcing an specific encoding....
We could simply add version 3.0 instead of replacing it, but I would
like to stimulate people to...
Since we already have that library as a dependency of our repository, it
makes sense to use it a...
Since we already have that library as a dependency of our repository, it
makes sense to use it a...
Since "sokil/php-isocodes" is a dependency of our repository already, it
makes sense to use it a...
Inside the "data/" directory, we have files with lists of subdivisions
that need to be updated. ...
We have three workflows that automatically update the code. They are
using version 2.0 as a base...
5a0b53831f44652c3a4fdddeef606d394e5fd56f authored almost 4 years ago by The Respect Panda <[email protected]>
This commit will fix an issue but ignore two of them because it will
require some refactoring th...
Signed-off-by: Henrique Moody <[email protected]>
5ba764692567d391cd2a10a24f3bdf72d418a200 authored about 4 years ago by Henrique Moody <[email protected]>Signed-off-by: Henrique Moody <[email protected]>
1eb5b9d3c5de193ab94edaeefe1d45f94abe664b authored about 4 years ago by Henrique Moody <[email protected]>Signed-off-by: Henrique Moody <[email protected]>
6c3aed92137836788c8ce654b9c35763c5e98b54 authored about 4 years ago by Henrique Moody <[email protected]>
One of the reasons for this change is to spare some space on the
Validator class, leaving only r...
Signed-off-by: Henrique Moody <[email protected]>
1809e9f4c49414bafc8fbba3920d8f0e2bc9add8 authored about 4 years ago by Henrique Moody <[email protected]>444f105ea6bc220ea908c4ac6debcc2ef313df75 authored about 4 years ago by The Respect Panda <[email protected]>
The PSR-7 has two interfaces that allow us to validate them as files.
This commit will allow som...