No description
  • PHP 99.1%
  • Shell 0.9%
Find a file
Alexandre Gomes Gaigalas ec16b3d2df Refactor case sensitiveness support
This is a mid-size refactor that affects several validators.

Most prominently, the ones that had an `$identical` parameter
to deal with case sensitiveness.

This parameter was confusing, effectively making validators such
as `Contains` behave very differently for arrays versus strings.

In arrays, `$identical` meant "the same type", while it in strings
it meant "case sensitive".

That parameter was removed, and the default behavior is now to
always compare **case sensitive** and strict typing.

A document explaining how to combine other validators in order
to achieve case _insensitive_ comparisons was added.

Additionally, the `Call` validator was refactored back to be
suitable to take on the task of being a fast, quick composable
validator.

With the introduction of `Circuit`, we can shift the responsibility
of dealing with possible mismatches to the user. This kind of type
handling is demonstrated in how I refactored `Tld` to account for
the type mismatch without setting error handlers.
2026-01-30 17:11:13 +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 Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
LICENSES Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
src Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
src-dev Streamline validators.md index 2026-01-28 12:47:08 +00:00
tests Refactor case sensitiveness support 2026-01-30 17:11:13 +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: