No description
  • PHP 99.1%
  • Shell 0.9%
Find a file
Henrique Moody dc0c0345c9
Create "Formatted" validator
The Formatted validator decorates another validator to transform how
input values appear in error messages, while still validating the
original unmodified input.

This is useful for improving the readability of error messages by
displaying values in a user-friendly formatd.

The validator accepts any Respect\StringFormatter\Formatter implementation,
allowing direct use of StringFormatter's fluent builder. As StringFormatter
expands with more formatters in future releases, users will automatically
benefit from the full range of formatting options.

Assisted-by: Claude Code (Opus 4.5)
2026-02-06 20:44:26 +01:00
.github Update composer lifecycle 2026-02-06 19:20:10 +00:00
bin Enhance LintSpdxCommand with contributor tracking and header normalization 2026-02-03 15:23:20 +01:00
data Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
docs Create "Formatted" validator 2026-02-06 20:44:26 +01:00
LICENSES Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
src Create "Formatted" validator 2026-02-06 20:44:26 +01:00
src-dev Create "Formatted" validator 2026-02-06 20:44:26 +01:00
tests Create "Formatted" validator 2026-02-06 20:44:26 +01:00
.gitattributes Update .gitattributes 2026-02-03 16:22:40 +00: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 Add v::format() to check if data is already in a specific format 2026-02-05 16:19:11 +00:00
codecov.yml Use Pest instead of PHPT files 2024-12-16 17:07:47 +01:00
composer.json Improve Documentation 2026-02-01 22:46:48 +00:00
composer.lock Update composer lifecycle 2026-02-06 19:20:10 +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 README.md and README.md-linked headline docs 2026-02-01 22:46:02 +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: