No description
  • PHP 99.1%
  • Shell 0.9%
Find a file
Alexandre Gomes Gaigalas 2600db3c74 Introduce Trimmed validator
This commit introduces the `Trimmed` validator that ensures a string
cannot start or end with a list of specific values.

The default values used are a selected list of Unicode invisible
characters.

To support this change, the StartsWith and EndsWith validators were
modified so they can also support multiple values to check for.

While StartsWith and EndsWith are more generic, and also perform
start-of-array and end-of-array kinds of checks, Trimmed is more
focused on string inputs, which tailors to a more specific use
case.
2026-02-26 10:34:53 +00:00
.github Allow panda.yml to request benchmark runs for PRs 2026-02-24 05:12:58 +00:00
bin Enhance LintSpdxCommand with contributor tracking and header normalization 2026-02-03 15:23:20 +01:00
data Update Regional Information 2026-02-26 00:24:14 +00:00
docs Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
LICENSES Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
src Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
src-dev Fix PublicSuffix validator and UpdateDomainSuffixesCommand 2026-02-23 12:18:57 +00:00
tests Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
.gitattributes Export aliases.php in package 2026-02-09 15:34:55 +01:00
.gitignore Update composer lifecycle 2026-02-06 19:20:10 +00:00
.readthedocs.yaml Improve syntax highlighting in MkDocs pages 2026-01-05 17:54:43 +01:00
aliases.php Upgrade respect/string-formatter to 1.6.0 and remove redundant alias 2026-02-09 13:38:40 +01:00
codecov.yml Use Pest instead of PHPT files 2024-12-16 17:07:47 +01:00
composer.json Bump symfony/console from 7.4.4 to 8.0.4 2026-02-26 00:11:20 +00:00
composer.lock Bump giggsey/libphonenumber-for-php-lite from 9.0.23 to 9.0.24 2026-02-26 00:14:02 +00:00
CONTRIBUTING.md Improve Documentation 2026-02-01 22:46:48 +00: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 Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
phpunit.xml.dist Remove mathematical, niche and deprecated validators 2026-01-30 16:08:27 +00:00
README.md Update URLs that changed 2026-02-11 20:24:00 +00:00
REUSE.toml Update composer lifecycle 2026-02-06 19:20:10 +00:00

Respect\Validation

Build Status Code Coverage Latest Stable Version Total Downloads License

The most awesome validation engine ever created for PHP.

  • Complex validation made simple: v::numericVal()->positive()->between(1, 255)->isValid($input).
  • Advanced exception handling.
  • More than 150 (fully tested) validators.

Learn More: