No description
  • PHP 99.1%
  • Shell 0.9%
Find a file
Alexandre Gomes Gaigalas bcc60ec035 Allow empty values in iterables for All, Each, Max, Min
Now empty values are again allowed in FilteredArray-style
validators.

To solve the issue with negation, a Result attribute was
added to signal indeciseveness (when a result cannot be
reliably inverted). On such cases, we consider that result
to be valid.

For example, `v::not(v::min(v::equals(10)))` says "The
lowest value of the iterable input should not be equal 10".

If the input is empty, we cannot decide whether its minimum
is equal to 10 or not, so the validator essentially becomes
a null-op.

Users that want to ensure these validators have a valid
decidable target must use it in combination with `Length`
or other similar validators to achieve the same result.
2026-01-30 21:27:16 +00:00
.github Change CI Perf to run on schedule, no runs on PRs 2026-01-30 11:45:06 +00:00
bin Simplify how we load and save files in data/ 2026-01-26 20:28:29 +01:00
data Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
docs Allow empty values in iterables for All, Each, Max, Min 2026-01-30 21:27:16 +00:00
LICENSES Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
src Allow empty values in iterables for All, Each, Max, Min 2026-01-30 21:27:16 +00:00
src-dev Streamline validators.md index 2026-01-28 12:47:08 +00:00
tests Allow empty values in iterables for All, Each, Max, Min 2026-01-30 21:27:16 +00:00
.gitattributes Port Bash scripts to PHP 2026-01-06 10:06:22 +01:00
.gitignore Introduce phpbench benchmarks and profiles 2026-01-12 23:44:38 +00:00
.readthedocs.yaml Improve syntax highlighting in MkDocs pages 2026-01-05 17:54:43 +01:00
aliases.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
codecov.yml Use Pest instead of PHPT files 2024-12-16 17:07:47 +01:00
composer.json Group lint-related commands together 2026-01-26 20:14:09 +01:00
CONTRIBUTING.md Rename library/ to src/ 2026-01-22 13:13:15 +01:00
LICENSE Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
mkdocs.yml Use awesome-pages to customize the menus 2026-01-26 12:26:06 +01:00
phpbench.json.dist Remove mathematical, niche and deprecated validators 2026-01-30 16:08:27 +00:00
phpcs.xml.dist Remove mathematical, niche and deprecated validators 2026-01-30 16:08:27 +00:00
phpstan.neon.dist Rename library/ to src/ 2026-01-22 13:13:15 +01:00
phpunit.xml.dist Remove mathematical, niche and deprecated validators 2026-01-30 16:08:27 +00:00
README.md Use awesome-pages to customize the menus 2026-01-26 12:26:06 +01:00
REUSE.toml Refactor CI Workflows 2026-01-28 17:31:37 +00:00

Respect\Validation

Build Status Code Coverage Latest Stable Version Total Downloads License

The most awesome validation engine ever created for PHP.

Learn More: